Verifying DNS Server

The Linux OS isn't aware of DNS by default, so you have to use a service to make this check. Fortunately, it's incredibly easy. Just use resolvect1

$ resolvectl status | grep -1 'DNS Server'
    DNSSEC supported: no
  Current DNS Server:
         DNS Servers:

For compatibility, systemd-resolve is a symbolic link to resolvectl on many distros as for Ubuntu 18.10:

$ type -a systemd-resolve
systemd-resolve is /usr/bin/systemd-resolve

$ ll /usr/bin/systemd-resolve
lrwxrwxrwx 1 root root 10 nov.  15 21:42 /usr/bin/systemd-resolve -> resolvectl

$ type -a resolvectl
resolvectl is /usr/bin/resolvectl

$ file /usr/bin/resolvectl
/usr/bin/resolvectl: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/, for GNU/Linux 3.2.0, BuildID[sha1]=09e488e849e3b988dd2ac93b024bbba18bb71814, stripped


If you have any comments, feel free to post them below or find us on Twitter and Facebook!

-Until next time!

July 09 2021

Add or review comments

Please leave your comment

Existing comments

Comments 0