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 188.8.131.52 PING 184.108.40.206 (220.127.116.11) 56(84) bytes of data. 64 bytes from 18.104.22.168: icmp_seq=1 ttl=120 time=5.07 ms 64 bytes from 22.214.171.124: icmp_seq=2 ttl=120 time=4.89 ms 64 bytes from 126.96.36.199: icmp_seq=3 ttl=120 time=4.33 ms --- 188.8.131.52 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?