Lost DNS from terminal after upgrading to 19.07.08

Just upgraded from 19.07.04 to 19.07.08 and I lost dns from the ssh terminal.

if I nslookup google.ca it does not resolve. but if I add a dns server at the end its fine.

Internal lan is fine as dhcp dishes out a dns server to clients. I just cant opkg update and install anything.

My wan interface shows and


# Interface lan
# Interface wan
# Interface wan6
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844


search lan

Any ideas, I'm blanking, I have never run into this after an upgrade. Probably something obvious but its not hitting me.

If I add manually to /tmp/resolv.conf it works until next reboot. Which makes sense as /tmp gets wiped.
What feeds /tmp/resolv.conf?

Replying to myself. Seems to be something with dnsmasq but I am not sure what changed after this upgrade. I added in /etc/init.d/dnsmask after and it populates /tmp/resolv.conf but I dont get what changed after the upgrade. The wan dhcp lease provides those servers.

When I run /etc/init.d/dnsmasq restart I see the following

root@OpenWrt:/etc/init.d# ./dnsmasq restart
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: no lease, failing


Replying to myself again....

Looks like dnsmasq crapped the bed on upgrade. Why I have no idea. Removed and reinstalled dnsmasq and now it appears to be working. No longer need to add dns servers in /etc/init.d/dnsmasq. It grabs the upstream servers.

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