Difference between revisions of "Dig"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
[[wikipedia:Dig_(command)]]<ref>https://linux.die.net/man/1/dig</ref> is a command line tool to query [[Domain name servers]].
 
[[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
 
* Man page: https://linux.die.net/man/1/dig
 +
* Config: <code>${HOME}/[[.digrc]]</code>
  
  
* <code>dig srv _jabber._tcp.example.com</code>
+
* <code>dig [[srv]] _jabber._tcp.example.com</code>
 +
* <code>dig +nostats +nocomments +nocmd +noquestion +recurse gmail.com any</code>
  
 
== Examples ==
 
== Examples ==
Line 28: Line 28:
 
* <code>dig -t [[TXT]] google.com</code>
 
* <code>dig -t [[TXT]] google.com</code>
 
* <code>dig -t [[NS]] google.com</code>
 
* <code>dig -t [[NS]] google.com</code>
 +
* <code>dig -t [[SOA]] google.com</code>
  
 
== Related commmands ==
 
== Related commmands ==

Latest revision as of 08:35, 9 December 2021

wikipedia:Dig_(command)[1] is a command line tool to query Domain name servers.


  • 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 +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]

See also[edit]

  • https://linux.die.net/man/1/dig
  • Advertising: