Difference between revisions of "Dig"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
  
 
== Examples ==
 
== Examples ==
 +
* <code>dig YOUR-DOMAIN-NAME.COM</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 YOUR-DOMAIN-NAME.COM +dnssec +short</code>
 
* <code>dig YOUR-DOMAIN-NAME.COM +dnssec +short</code>
 
* <code>dig YOUR-DOMAIN-NAME.COM any</code>
 
* <code>dig YOUR-DOMAIN-NAME.COM any</code>
Line 17: Line 20:
  
 
*  dig +dnssec +norecurse @ns-cloud-a4.googledomains.com sapientia.dev soa
 
*  dig +dnssec +norecurse @ns-cloud-a4.googledomains.com sapientia.dev soa
 
  
 
== Related commmands ==
 
== Related commmands ==

Revision as of 07:46, 21 February 2021

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



  • dig srv _jabber._tcp.example.com

Examples

  • dig YOUR-DOMAIN-NAME.COM
  • dig YOUR-DOMAIN-NAME.COM @8.8.8.8
  • dig +trace 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

Related commmands

See also

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