I have some local name-servers configured on a router using the ip name-server command.
The router also knows about some external DNS servers that were supplied via DHCP - the WAN interface uses DHCP to obtain its IP address and gets some DNS servers as well.
However these external servers have never actually been used because the configured local servers were always used first.
Unfortunately the router lost contact with the local servers recently and is now using the external servers first, by default - if a lookup fails it then does not try the others. A lot of local lookups are obviously failing for hostnames that are local, that don't have public DNS entries.
So my question is - is there a way of clearing this name-server priority without shutting the WAN interface or reloading the router? I have tried removing the local DNS servers and re-adding them (no ip name-server xxx.xxx.xxx.xxx, ip name-server xxx.xxx.xxx.xxx), switching off the lookup service (no ip domain-lookup, ip domain-lookup), clearing the hosts table (clear host *) but the router is still stubbornly using the external DNS servers that it failed over to during the internal outage.