DNS client ceases to work after disconnecting from VPN

Hi. I am running Tumbleweed with kde, on a fresh install. I am having an issue where I cant connect to any dns servers on my computer, This started after i disconnected from my VPN and plugged in my network cable, I have tried rebooting. Running the dig command gives me



; <<>> DiG 9.10.4-P5 <<>>
;; global options: +cmd
;; connection timed out; no servers could be reached


Any and all help appreciated

Are you using NetworkManager or wicked? What does the following return after disconnecting from VPN?

grep name /etc/resolv.conf

If necessary, do

netconfig -f update

or remove /etc/resolv.conf and restart your networking

systemctl restart network

Are you using NetworkManager or wicked?

Im running network manager

What does the following return after disconnecting from VPN?

It just terminates with no output

If necessary, do

netconfig -f update

Ah, this one fixed it. Is there something to do to prevent whatever happened? Or is it just going to happen?

Cheers mate

I don’t know what the specific reason behind the loss of valid name servers might have been. (You might need to investigate the NetworkManager logs for that). Good to read that name resolution is now working for you as expected.

Additionally, reading

man NetworkManager

especially the section about “DISPATCHER SCRIPTS” might give a rather easy
hack/workaround to prevent this with some simple vpn-down script running the
above netconfig command.

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)