dig Command Examples

DNS lookup utility. More information: https://manned.org/dig.

dig +short {{example.com}}

dig +noall +answer {{example.com}}

dig +short {{example.com}} {{A|MX|TXT|CNAME|NS}}

dig {{+tls}} @{{1.1.1.1|8.8.8.8|9.9.9.9|...}} {{example.com}}

dig -x {{8.8.8.8}}

dig +nssearch {{example.com}}

dig +trace {{example.com}}

dig +tcp -p {{port}} @{{dns_server_ip}} {{example.com}}