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.
In recent Ubuntu releases, domain name resolution is handled by systemd-resolvd, and 127.0.0.53 is only a stub listener created by systemd-resolvd. You can find out the actual DNS server that handles DNS queries by the command
Looks for the line that starts with
DNS Servers
.You can learn more about systemd-resolvd from its manpage.