3

When read /etc/resolv.conf:

me@alpha:~$ cat /etc/resolv.conf | tail -3                                                                                
# operation for /etc/resolv.conf.

nameserver 127.0.0.53

I got the idea of DNS from The Internet: IP Addresses & DNS - YouTube and aware that DNS is Google Public DNS - Wikipedia

How could the default namesever is a localhost address? I guess it impossible accessing to external services.

pa4080
  • 29,831
Alice
  • 1,710

1 Answers1

8

In recent Ubuntu releases, domain name resolution is handled by systemd-resolved, and 127.0.0.53 is only a stub listener created by systemd-resolved. You can find out the actual DNS server that handles DNS queries by using the command

$ systemd-resolve --status

Look for the line that starts with DNS Servers.

You can learn more about systemd-resolved from its manpage.

winne2
  • 103
Anthony Wong
  • 921
  • 6
  • 20