DNS cache (and hotspot)

Hello everyone,

I’m busy with setting up a hotspot system.
Of course you need DNS, now by default the hotspot DHCP server pushes the hotspot gateway as DNS and the two DNS servers configured in the DNS tab to the hotspot clients.
I use OpenDNS for the hotspot (content filtering), but also want to use other DNS servers for the “private” network without this content filtering in a clean way.
So I prefer only the hotspot gateway is pushed as DNS server, and the hotspot gateway uses OpenDNS in the background (how messy looks that the default way).
In best cast two seperate DNS caches would be nice (GoogleDNS and OpenDNS).

So I adjusted that only the hotspot gateway is pushed, but DNS resolving is not possible then. (why not?)
The next step I want to do is to redirect all DNS traffic (port 53) from the hotspot to the hotspot gateway so no other DNS servers could be used by the clients and there is no way around the content filtering.
When you use external DNS servers for the client it is not possible to create a good redirect in case the DNS server is offline.


Thanks

There is a good Wiki entry on this.

http://wiki.mikrotik.com/wiki/Force_users_to_use_specified_DNS_server

In this example, it shows all traffic being forced to a specific DNS server. But if you want to have 2 or more DNS servers, just add your SRCNAT subnet to the firewall rule. Can also do this by Interface, VLAN, or some other qualifier. This will allow you to have Hotspot traffic go to one DNS server, and all other traffic to resolve to a different DNS server.