DNS

Chester Wyke December 02, 2022 Updated: April 15, 2025 #debian

Source: https://www.howtouselinux.com/post/linux-command-use-dig-to-query-dns

See DNS Server set

Tested on Ubuntu 22.04 (Did not work on Ubuntu 18.04)

resolvectl status

Clear DNS Cache

sudo resolvectl flush-caches

Dig notes

Source of nameserver

Dig seems to get the default nameserver to use from /etc/resolv.conf. This file in turn seems to default to the localhost.

Dig from a specific name server

Use:

dig host @local-server

Where: