Community discussions

MikroTik App
 
guesswhat1008
just joined
Topic Author
Posts: 1
Joined: Wed Jul 08, 2009 6:36 pm

DNS Server

Wed Jul 08, 2009 6:44 pm

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
 
thiele
newbie
Posts: 44
Joined: Mon Jun 01, 2009 5:08 pm
Location: Curitiba - Brasil

Re: DNS Server

Wed Jul 08, 2009 10:32 pm

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