DNS issue

Hello,

I have this issue with DNS, for the time being I’m using these addresses as DNS servers 195.x.x.8 and 195.x.x.9, now I will skip to new servers (new Provider) with addresses 80.x.x.8 and 80.x.x.9, what I need is that my clients continue to use old DNSes, is there a way to redirect traffic destined for old DNSes to new ones, or any kind of NAT ?

Regards.

Faton

I Thik I have found the solution:

ip firewall nat add chain=dstnat protocol=udp dst-port=53 action=dst-nat to-addresses=80.80.160.8 to-ports=53
ip firewall nat add chain=dstnat protocol=tcp dst-port=53 action=dst-nat to-addresses=80.80.160.8 to-ports=53

Regards.

Faton, you might decrease DNS requests to external server by enabling local DNS cache on the router.
Router will manage users DNS requests, to accoplish it:

  • ‘ip dns set primary-dns=80.80.160.8 allow-remote-requests=yes’.
  • use action redirect instead of dst-nat.

Thanks Sergejs,
I have changed from DNAT to redirect and it is working fine.

Thanks a lot.

Regards.

Faton

do you have to set primary-dns=80.80.160.8? Can RouterOS be a dns cache without any upstream dns and query root name servers directly?

No, RouterOS can be a DNS cache only with upstream DNS server settings, it does not act as apparent DNS server.