[SOLVED] Ubuntu 20.04 unable to resolve by name but 1.1.1.1 and 8.8.8.8 are OK
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 127.0.0.53
Other machines are able to resolve just fine so I don't know what to do next.
Well, what are the other DNS servers for those other machines? Do they ALL point back to that 127.0.0.53 address?? That's something I've never seen before...typically you'll have the address of your ISP's DNS server, or the Google DNS servers (8.8.8.8 and 8.8.4.4). Try putting those into your resolv.conf file, and see what happens. Looks like you don't have a valid DNS server, since you can ping out to the Internet.
Thanks for the reply. I'll investigate your suggestion re DNS resolver. The comments in /etc/resolv.conf from the laptop provides a couple of hints. Ubuntu and Mint all reference 127.0.0.53.
Code:
Desktop2 Ubuntu 20.04
#This file is managed by man:systemd-resolved(8). Do not edit.
nameserver 127.0.0.53
options edns0 trust-ad
search lan
Mint 20
#This file is managed by man:systemd-resolved(8). Do not edit.
nameserver 127.0.0.53
options edns0 trust-ad
search lan
Ubuntu 20.04 lappy
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
The
Code:
systemd-resolve --status
output is 63 lines so I'll reserve it unless requested.
Solved. Protonvpn kill switch set up an interface that I had to remove, then log back in the VPN before shutdown or reboot. Shutdown or reboot before logging into the VPN would cause the interface to reappear and block resolver.
Code:
sudo ip link delete "link_name"
Log in the VPN then you may shutdown or reboot. Otherwise, the link persists.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.