on a mikrotik router with Router OS 7.12 stable I have following situation:
ehter1 = WAN1
ether2 = WAN2
ether3 = LAN1 192.168.1.1 with DHCP
ether4 = LAN2 192.168.2.1 with DHCP
ether5 = LAN3 192.168.3.1 with DHCP
I want to have separated DNS-Server for each LAN, if possible.
But I cannot say in DHCP: use 8.8.8.8 for LAN1, because I also need router for LAN-internal DNS function.
So I have to provide 192.168.1.1 as DNS-Server in LAN1 and 192.168.2.1 as DNS-Server in LAN2.
But I need LAN1 using peer DNS of WAN1 (because of VoIP-Provider) and I want LAN2 using another external DNS via WAN2.
(For LAN3 I only need external DNS - thats what I can configure in DHCP-Server - thats clear).
So what do you mean how can this problem be solved?
Maybe mangle DNS-requests from LAN1 and route them out via WAN1? - but then DNS-lookups for internal LAN would also be routed to external DNS, right?
Mikrotik only implement a single DNS server so you are limited to the clients using that or external ones.
In your case if the WAN1 peer DNS addresses are static and the VoIP hosts to be resolved can be matched with regexp or match-subdomain you could use the WAN2 DNS servers by default with forward-to rules for the lookups which have to be made from the WAN1 DNS servers. If those requests have to originate via the correct WAN you would also need some mangle or routing rules to direct the requests accordingly.