Using Different DNS Servers

Hi, i have my mikrotik with 4 different interfaces (ADSL Modem, Home, Office and Hotspot) and i am trying to use different DNS servers on those interfaces…

I wanted the Home and te Office interface to use my ISP DNS Server (Telepac ADSL: 194.65.3.20) and the Hotspot interface to use OpenDNS (208.67.222.222) thas has some blocked sites (so that people don’t drain my internet connection)…

Any help is welcome, thanks for the attention.

Best regards, Paulo Brinca.

you will have to use DST-NAT to redirect DNS requests to those servers, based on the SRC-ADDRESS

Thanks for the tip, but i’m a little noob on this field…

Could you please post a sample, or give me some link where to find some info on that…

Sorry for all the trouble :confused:

/ip firewall nat add chain=dstnat src-address=10.0.0.0/24 protocol=tcp dst-port=53 action=dst-nat to-addresses=192.168.1.101 to-ports=53
/ip firewall nat add chain=dstnat src-address=10.0.0.0/24 protocol=udp dst-port=53 action=dst-nat to-addresses=192.168.1.101 to-ports=53

in this example, 192.168.1.101 would be the new DNS server where the customer from 10.0.0.0 network will be sent.

Thanks a lot, i will test that config an post the results :smiley:

One other thing, do you perform remote configs?

We could create a user for you on our mikrotik so you could give us some support, if you agree of course…

It would be very helpfull…

we have a list of consultants on our homepage, in the support section.

I know, i have already requested Jorge Amaral and João Olival, but any help is welcome :smiley:

Thanks for all your support, keep up the good work…

Best regards, Paulo Brinca.