Domain Information Groper

Domain Information Groper

Domain Information Groper (dig) is a network administration command-line tool for querying Domain Name System (DNS) name servers for any desired DNS records.

Dig is useful for network troubleshooting and for educational purposes. Dig can operate in interactive command line mode or in batch mode by reading requests from an operating system file. When a specific name server is not specified in the command invocation, it will use the operating systems default resolver, usually configured via the resolv.conf file. Without any arguments it queries the DNS root zone.

Dig supports Internationalized Domain Name (IDN) queries.

Dig is part of the BIND domain name server software suite. Dig replaces older tools such as nslookup and the host program.

Contents

Example usage

In this example, dig is used to query for any type of record information in the domain example.com:

  • Command line:
dig any example.com
  • Output:
; <<>> DiG 9.6.1 <<>> any example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4016
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;example.com.                   IN      ANY

;; ANSWER SECTION:
example.com.            172719  IN      NS      a.iana-servers.net.
example.com.            172719  IN      NS      b.iana-servers.net.
example.com.            172719  IN      A       208.77.188.166
example.com.            172719  IN      SOA     dns1.icann.org. hostmaster.icann.org. 2007051703 7200 3600 1209600 86400

;; Query time: 1 msec
;; SERVER: ::1#53(::1)
;; WHEN: Wed Aug 12 11:40:43 2009
;; MSG SIZE  rcvd: 154

Queries may be directed to designated DNS servers for specific records; in this example, MX records:

  • Command:
dig MX wikimedia.org @ns0.wikimedia.org
  • Output:
; <<>> DiG 9.6.1 <<>> MX wikimedia.org @ns0.wikimedia.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61144
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;wikimedia.org.                 IN      MX

;; ANSWER SECTION:
wikimedia.org.          3600    IN      MX      10 mchenry.wikimedia.org.
wikimedia.org.          3600    IN      MX      50 lists.wikimedia.org.

;; ADDITIONAL SECTION:
mchenry.wikimedia.org.  3600    IN      A       208.80.152.186
lists.wikimedia.org.    3600    IN      A       91.198.174.5

;; Query time: 73 msec
;; SERVER: 208.80.152.130#53(208.80.152.130)
;; WHEN: Wed Aug 12 11:51:03 2009
;; MSG SIZE  rcvd: 109

See also

References

Paul Albitz and Cricket Liu. DNS and BIND, 5th Edition. Nutshell Series. O'Reilly and Associates, Inc., 2006.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Domain Information Groper — …   Википедия

  • Domain information groper — …   Википедия

  • Domain — may refer to: General Territory (administrative division), a non sovereign geographic area which has come under the authority of another government Public domain, a body of works and knowledge without proprietary interest Eminent domain, the… …   Wikipedia

  • WHOIS — (pronounced who is ; not an acronym) is a query/response protocol which is widely used for querying an official database in order to determine the owner of a domain name, an IP address, or an autonomous system number on the Internet. WHOIS… …   Wikipedia

  • Whois — (pronounced as the phrase who is) is a query and response protocol that is widely used for querying databases that store the registered users or assignees of an Internet resource, such as a domain name, an IP address block, or an autonomous… …   Wikipedia

  • nslookup — is a network administration command line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. Contents 1 Background 2 Usage… …   Wikipedia

  • Dig (Programm) — dig ist ein Befehl in verschiedenen Betriebssystemen, mit dem die Server des weltweiten Domain Name Systems (DNS) abgefragt werden können. Der Name ist die Abkürzung von „domain information groper“ (wörtlich aus dem Englischen übersetzt:… …   Deutsch Wikipedia

  • dig (programme informatique) — Pour les articles homonymes, voir Dig. dig est un programme informatique de débogage de serveurs DNS. Il signifie Domain Information Groper, littéralement Chercheur d Information sur les Domaines. Utilisable en ligne de commande, il permet aussi… …   Wikipédia en Français

  • dig (Programm) — dig ist ein Befehl in verschiedenen Betriebssystemen, mit dem die Server des weltweiten Domain Name Systems (DNS) abgefragt werden können. Der Name ist die Abkürzung von „domain information groper“ (wörtlich aus dem Englischen übersetzt:… …   Deutsch Wikipedia

  • Dig — may refer to: Contents 1 Music 2 Other media 3 Abbreviations 4 …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”