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