/etc/resolv.conf not set on reboot
# uname -rv
5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021
# lsb_release -d
Description: Ubuntu 20.04.3 LTS
# systemd-resolve --status| grep "DNS Server"
Current DNS Server: 192.168.1.1
DNS Servers: 192.168.1.1
Current DNS Server: 192.168.1.1
DNS Servers: 192.168.1.1
# ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 39 May 10 2021 /etc/resolv.conf -> ../run/
# grep nameserver /etc/resolv.conf
nameserver 127.0.0.53
# grep DNS /etc/systemd/
DNS=192.168.1.1
I have two Ubuntu 20.04 systems that have the same problem. Local hosts are not resolved. Global hosts are.
# ping answers.
PING answers.
# ping meerkat
ping: meerkat: Temporary failure in name resolution
If I add 'nameserver 192.168.1.1' to /etc/resolv.conf locat hosts are resolved - no errors.
I thought systemd created /run/systemd/
What do I change to fix this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply: