Page 1 of 1

DNS Server

Posted: Wed Jul 08, 2009 6:44 pm
by guesswhat1008
hi, how do i make sure that users are using only the dns server given via dhcp thru my router and not any other dns servers. I want a script which automatically redirects all name server resolutions to the dns server specified in my router even if they manually set the dns servers.

thanks

Re: DNS Server

Posted: Wed Jul 08, 2009 10:32 pm
by thiele
Try this:

/ip firewall nat add action=dst-nat chain=dstnat comment="" disabled=no in-interface=<YOUR_CLIENTS_INTERFACE> dst-address=!<YOURDNS> dst-port=53 protocol=udp to-addresses=<YOURDNS> to-ports=53


Jorge