Loadbalancing/Failover also for DNS

Hi! Have installed OpenWrt 18.06.1 on TP-LINK TL-WR1043N v5 and it works very well. I configured 2 Loadbalancing/Failover interfaces, one per Static IP and one via PPPoE.

I now have the problem that the interface with PPPoE is likely to fail and when it fails the router still tries to forward the DNS requests from the internal clients over that interface and not over the good one. The other traffic works well. When I manually restart the interface the good WAN connection works including DNS resolving.

May somebody can help me configure it perfectly?

The simplest way to solve it would be overriding DHCP-pushed DNS-servers with ISP-independent ones:

Thanks but then lokal DNS requests fail. Whats the problem that prevents openwrt to also switch the "DNS-Interface"?

Use DNS forwarding for local domains to override general configuration:

Disable network interface together with its DNS servers:

uci set network.IF_NAME.disabled="1"
uci commit network
/etc/init.d/network restart
/etc/init.d/dnsmasq restart

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.