System: RB450G - RouterOS 5.26
ether1: WAN 192.168.0.2/24 - GW 192.168.0.1 (ADSL Modem)
ether2: LAN 192.168.1.1/24 - DNS 192.168.1.1
Masq:
ip firewall nat add action=masquerade chain=srcnat disabled=no out-interface=ether1
Internal DNS Cache:
ip dns set allow-remote-requests=yes cache-max-ttl=1h cache-size=512KiB max-udp-packet-size=4096 servers=(any dns server)
Internal DNS Cache working fine. But port 53 now blocked so I need to forward DNS to another port. Then I put this:
ip firewall nat add action=dst-nat chain=dstnat disabled=no dst-port=53 protocol=udp to-addresses=(any dns server) to-ports=(custom dns port)
It’s working fine but now Internal DNS Cache not caching anything.
Is there any way so every clients go to Internal DNS Cache first, then Internal DNS Cache go to custom dns port? Thanks.