Difference between revisions of "Dig"
Jump to navigation
Jump to search
↑ https://linux.die.net/man/1/dig
(34 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | dig | + | {{lowercase}} |
+ | [[wikipedia:Dig_(command)]]<ref>https://linux.die.net/man/1/dig</ref> is a command line tool to query [[Domain name servers]]. | ||
+ | * Man page: https://linux.die.net/man/1/dig | ||
+ | * Config: <code>${HOME}/[[.digrc]]</code> | ||
+ | * <code>dig [[srv]] _jabber._tcp.example.com</code> | ||
+ | * <code>dig +nostats +nocomments +nocmd +noquestion +recurse gmail.com any</code> | ||
+ | |||
+ | == Examples == | ||
+ | * <code>dig YOUR-DOMAIN-NAME.COM</code> | ||
+ | * <code>dig +short YOUR-DOMAIN-NAME.COM</code> | ||
+ | * <code>dig YOUR-DOMAIN-NAME.COM [[SOA]]</code> | ||
+ | * <code>dig YOUR-DOMAIN-NAME.COM +timeout=20</code> | ||
+ | * <code>dig YOUR-DOMAIN-NAME.COM @8.8.8.8 </code> | ||
+ | * <code>dig +trace YOUR-DOMAIN-NAME.COM @8.8.8.8</code> | ||
+ | * <code>dig +notrace YOUR-DOMAIN-NAME.COM @8.8.8.8</code> | ||
+ | * <code>dig YOUR-DOMAIN-NAME.COM +dnssec +short</code> | ||
+ | * <code>dig YOUR-DOMAIN-NAME.COM any</code> | ||
+ | |||
+ | To query an specific DNS server: <code>@ns0.wikimedia.org</code> | ||
+ | * <code>dig wikimedia.org @ns0.wikimedia.org</code> | ||
+ | To query an specific DNS server: <code>@ns0.wikimedia.org</code> for an specific record: <code>[[MX]]</code> | ||
+ | * <code>[[dig wikimedia.org MX]] @ns0.wikimedia.org</code> | ||
+ | |||
+ | * <code>dig +dnssec +norecurse @ns-cloud-a4.googledomains.com sapientia.dev [[SOA]]</code> | ||
+ | * <code>dig -t [[MX]] wikipedia.org</code> | ||
+ | * <code>dig -t [[TXT]] google.com</code> | ||
+ | * <code>dig -t [[NS]] google.com</code> | ||
+ | * <code>dig -t [[SOA]] google.com</code> | ||
+ | |||
+ | == Related commmands == | ||
+ | * <code>[[host]], [[host -t]] ns DOMAIN_NAME.COM</code> | ||
+ | * <code>[[drill]]</code> | ||
+ | * <code>[[scutil --dns]]</code> | ||
== See also == | == See also == | ||
* {{DNS}} | * {{DNS}} | ||
+ | * {{dig}} | ||
+ | |||
+ | [[Category:DNS]] | ||
[[Category:Internet]] | [[Category:Internet]] |
Latest revision as of 08:35, 9 December 2021
wikipedia:Dig_(command)[1] is a command line tool to query Domain name servers.
- Man page: https://linux.die.net/man/1/dig
- Config:
${HOME}/.digrc
dig srv _jabber._tcp.example.com
dig +nostats +nocomments +nocmd +noquestion +recurse gmail.com any
Examples[edit]
dig YOUR-DOMAIN-NAME.COM
dig +short YOUR-DOMAIN-NAME.COM
dig YOUR-DOMAIN-NAME.COM SOA
dig YOUR-DOMAIN-NAME.COM +timeout=20
dig YOUR-DOMAIN-NAME.COM @8.8.8.8
dig +trace YOUR-DOMAIN-NAME.COM @8.8.8.8
dig +notrace YOUR-DOMAIN-NAME.COM @8.8.8.8
dig YOUR-DOMAIN-NAME.COM +dnssec +short
dig YOUR-DOMAIN-NAME.COM any
To query an specific DNS server: @ns0.wikimedia.org
dig wikimedia.org @ns0.wikimedia.org
To query an specific DNS server: @ns0.wikimedia.org
for an specific record: MX
dig wikimedia.org MX @ns0.wikimedia.org
dig +dnssec +norecurse @ns-cloud-a4.googledomains.com sapientia.dev SOA
dig -t MX wikipedia.org
dig -t TXT google.com
dig -t NS google.com
dig -t SOA google.com
Related commmands[edit]
host, host -t ns DOMAIN_NAME.COM
drill
scutil --dns
See also[edit]
- DNS: Linux DNS, IP,
systemd-resolve
,/etc/hosts
,whois
, Domain registrar,dig
,host
,nslookup
,scutil --dns
dnsmasq
,bind
,delv
,.local
,.internal, .onion
, FQDN, TTL,/etc/resolv.conf
,/etc/systemd/resolved.conf
,dscacheutil
(macOS),hostname, hostnamectl
,bind
,resolvectl status
, DNS sinkhole, Domain name server, LLMNR, Resource records:MX, TXT, NS
, CAA, SSHFP, Apex, CNAME, Wildcard DNS records, Subdomain, /etc/nsswitch.conf,1.1.1.1
,8.8.8.8, CoreDNS, dnsPolicy:
, Google Public DNS, DNS caches, Kubernetes ExternalDNS, DNS forwarding, IDNA2008, DNS-1035, Domain name registrars, Split-view DNS, Pi-hole, NextDNS dig, host, nslookup, delv, axfr, resolvectl query, dig -t NS, dig -t MX, dig -t TXT, dig -t SOA
Advertising: