After a restart I face serious issues with resolving dns on my Ubuntu 20.04. As written,
- host, dig and nslookup can resolve domain names to IPs e.g.
dig @8.8.8.8 google.com dig @8.8.8.8 google.com +tcp
- I can ping the outside world using the IP
- other devices on same wifi work fine However, the browser (ERR_NAME_NOT_RESOLVED), services such as curl (Could not resolve host: www.google.com) or ping an domain do not work.
I changed from local router DNS to 8.8.8.8 (did not change anything) and tried out some other things I found here but without any success for 8+ hours. I had VPNs installed (no nordvpn, just uni), deleted everything I could find with no change...
What is the difference between DNS request from browsers and these tools? The A, AAAA, NX from dig all seems fine. It makes absolutely no sense to me.
dig @8.8.8.8 google.com
vs.dig @8.8.8.8 google.com +tcp
, I'll expect the second won't work, as you may found out, because it is using TCP instead of UDP. (ping is ICMP, something different).