This is a recent install, so haven't installed much apart from my usual 
programs, vim, editors, etc...
I would expect to be able to ping by hostname without installing additional 
software such as resolver libraries.

Here is my /etc/nsswitch.conf

`cat /etc/nsswitch.conf`
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat systemd
group:          compat systemd
shadow:         compat
gshadow:        files

hosts:          files mdns4_minimal [NOTFOUND=return] dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis


Do additional libraries need installing from a full base install?

-- 
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

Reply via email to