Hello guys!, I have a hotspot server on my network and I installed a DNS cache server on it. I would like the hotspot users and non hotspot users to be able to access the cache server on that router. How can I do that?, I think its a simple rule on that server (Firewall rule) but I dont know how to do it. Could you help me?
Make sure you have configured two DNS servers to /ip dns set primary-dns= secondary-dns=
To reply for remote DNS requests set /ip dns set allow-remote-requests=yes
Add redirect NAT rule for DNS traffic (port 53, protocol UDP and TCP),
/ip firewall nat add action=redirect chain=dstnat dst-port=53 protocol=tcp to-ports=53
Thank you for your reply, I do have 2 DNS servers and will configure them on my mikrotik.
When i set this rule to my Router:
/ip firewall nat add action=redirect chain=dstnat dst-port=53 protocol=tcp to-ports=53
DNS cache are filled with DNS entries but in PC’s i can’t resolve DNS so i can’t open any website.
I try other rule from http://wiki.mikrotik.com/wiki/NetworkPro_on_firewalling:
/ ip firewall nat
add chain=dstnat in-interface=Local connection-mark=dns action=redirect comment="Transparent DNS Cache"
and… the same results.
I’ve got 2 ethernet interfaces attached to a bridge.
What is wrong?
Sorry for my bad English