Ok, thanks for the suggestion there Dimitri. I ran a wireshark to see what happened when I pinged the hostname which would inevitably fail, and I got nothing in wireshark. What I think is happening and makes most sense is that the stub resolver is eating up my DNS lookup and not forwarding it onto my nameserver. This is why there is no network traffic for the ping as the resolve just fails inside the stub resolver.
Is the nsswitch.conf a clue here? hosts: files mdns4_minimal [NOTFOUND=return] dns Does that mean that if there is not hostname found, it returns and not forwards to dns? After the failed wireshark, I switched the /etc/resolv.conf to not point to the stub-resolv.conf and all is well again. I would still like to help fix this issue though. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1779438 Title: Cannot resolve names using systemd-resolved stub resolver Status in systemd package in Ubuntu: Incomplete Bug description: Description: Ubuntu 18.04 LTS Release: 18.04 I am running a clean install of Ubuntu 18.04. This bug was also present for me on a clean install of Ubuntu 17.10 and I had a solution, but it appears to no longer work. What I expect to happen: Ping other hosts on network by name What happened instead: I can't ping other machines on network via name. From my Ubuntu 18.04 machine, I `ping ubuntu-test-1` and `ping ubuntu-test-1.localdomain` but neither work. I can ping by IP address though. The other machines on the network are Ubuntu Server 16.04.3 machines and can ping each other by name also. All machines on network including problem one receive DHCP leases from same server (192.168.20.1) I believe the problem is systemd-resolved stub resolver. `cat /etc/resolv.conf` # This file is managed by man:systemd-resolved(8). Do not edit. # # This is a dynamic resolv.conf file for connecting local clients to the # internal DNS stub resolver of systemd-resolved. This file lists all # configured search domains. # # Run "systemd-resolve --status" to see details about the uplink DNS servers # currently in use. # # Third party programs must not access this file directly, but only through the # symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way, # replace this symlink by a static file or a different symlink. # # See man:systemd-resolved.service(8) for details about the supported modes of # operation for /etc/resolv.conf. nameserver 127.0.0.53 search localdomain If I change the nameserver line to the IP of my nameserver, not the stub, resolution works. nameserver 192.168.20.1 search localdomain Now I can ping hosts by name. I used to solve this problem like this... `sudo systemctl disable systemd-resolved.service` `echo "nameserver 192.168.20.1" | sudo tee -a /etc/resolvconf/resolv.conf.d/tail` `sudo reboot` But /etc/resolvconf/resolv.conf.d no longer exists, and it's about time this problem was fixed :) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1779438/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp