whatis dns

DNS

Also known as: Domain Name System, resolver, /etc/resolv.conf

The system that translates hostnames like linuxdork.com into IP addresses, queried on Linux with tools like dig.

What Is DNS in Linux?

When a program looks up a name, glibc checks /etc/nsswitch.conf, usually tries /etc/hosts first, then asks the resolver listed in /etc/resolv.conf. On many distros that is systemd-resolved on 127.0.0.53.

Common record types are A (IPv4), AAAA (IPv6), CNAME (alias), MX (mail), and TXT. Most "the internet is down" problems turn out to be DNS.

Example

dig +short linuxdork.com
resolvectl status