DNS

How to setup right dns cache server? Main server 5.26mikrotik Dns servers are google example 8.8.8.8, options for allow remote requests is for what? Should I put something in static tab? I need local users use my local DNS router IP that is 192.168.10.1. How to setup at clients? They have mikrotik RB’s clients. For theirs local pc there is routing on another IPs. How correctly setup DNS settings in clients mikrotik OS so dhcp add dns IP of my main dns server?
One more thing about dns I need local IP clients give a name example local.net so in webbrowser after adding their name I see equipment what is belong to IP. I need it also for webserver to give it www name instead IP. How this can be done in mikrotik?

I think this is what you want. Set up the router in “/ip dns”. Set “allow-remote-requests=yes” so the clients can use it for a dns server.

If the clients get their network settings from the router’s dhcp, then set the dhcp server to issue the router’s ip as the dns server.

/ip dhcp-server network
set X dns-server=192.168.10.1

Then enter the local dns entries in “/ip dns static”. As an example

/ip dns static
add name=server.localdomain.com address=192.168.10.2

opetion Allow remote requests on or off? In dns static there is nothing to add for dns local server work correctly except give a name to local IPs clients? Is that right?

If you set “allow-remote-requests=no”, then your router will be the only device using the dns on the router. Your clients will not be able to use the router for dns.

The “/ip dns static” entries are local only. Only clients using the router for dns will use the entries there. Be careful tho. If you set an entry for a domain that exists, the clients using the router for dns will get the ip in “/ip dns static”, not the public ip.