I'm having a problem with DNS on Ubuntu 18.04. I think there is a misconfiguration somewhere between netwrok-manager, systemd-resolved and resolvconf.
I can ping IP addresses ok, but not host names:
$ ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=120 time=5.07 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=120 time=4.89 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=120 time=4.33 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 4.336/4.768/5.072/0.318 ms
$ ping -c 3 www.google.com
ping: www.google.com: Name or service not known
Both systemd-resolved and resolvconf services are running:
There is a symlink /etc/resolv.conf pointing to /run/systemd/resolve/stub-resolv.conf
nameserver 127.0.0.53
options edns0
If I replace /etc/resolv.conf symlink with a file containing the below, hostnames are resolved
search station
nameserver 127.0.1.1
I'd like to know how to fix it so it works without having to remove the symlink. Can someone please advise on how to fix this issue?
127.0.1.1
on theresolv.conf
to1.1.1.1
or8.8.8.8
and save the file, see if that is solving your question.