DNS
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:
- host: is the host to look up
- local-server is the place to do the lookup