Community discussions

MikroTik App
 
danieltnc1981
newbie
Topic Author
Posts: 32
Joined: Sun Jul 16, 2017 1:27 pm

Setting Dns Internally

Thu Jul 07, 2022 11:49 am

Hello I have the following question
Would I like to insert the resolution of app.manager.it to the IP address 192.168.1.226 internally in the DNS?
I would like 192.168.1.226 to answer me if I ping app.manager.it within my network. It's possible?
How can I do?
Sincerely,
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Setting Dns Internally

Thu Jul 07, 2022 6:44 pm

It depends. Router can do it:
/ip dns static
add address=192.168.1.226 name=app.manager.it
But it will only work if connected devices use only this router as DNS resolver, they must not ask another (e.g. external DoH as some web browsers do).

If it's for some service that's accesible from internet using ports forwarded to internal server, and you need the same hostname to work also from LAN, then more foolproof method is thing called "hairpin NAT", see e.g.: viewtopic.php?t=179343

Who is online

Users browsing this forum: Bing [Bot], Charg, taksa and 114 guests