Enable Networking fails DNS configuration with systemd-resolved

Bug #1723803 reported by Nicolas Michel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
friendly-recovery (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm testing Ubuntu 17.10. The DNS is not well configured when choosing "enable networking".

Steps to reproduce
------------------
- Choose recovery mode from grub
- choose "enable networking"
- Choose "drop to root shell prompt"
- You can test name resolution with ping www.google.com or apt update. It fails.

Explanation
-----------
- /etc/resolv.conf is a symlink to /var/run/systemd/resolve/resolv.conf
- The file is configured to use the local DNS forwarder made available by the systemd-resolved service
- In recovery mode, systemd-resolved service is not started and trying to start it by hand doesn't seem to work

Workaround
----------
Replace the symlink /etc/resolv.conf by a text file and configure a known working DNS. For example:
nameserver 8.8.8.8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.