Dig Common domain Name query tool

Source: Internet
Author: User
Tags domain name server

The dig command is a common domain name query tool that you can use to test whether your domain Name system is working properly.

Dig (option) (parameter)

@< server address;: Specifies the domain name server for domain name resolution;

-B: When the host has multiple IP addresses, specify which IP address to use to send Domain name query requests to the domain name server;

-f< file name;: Specifies that the dig is run as a batch, and the specified file holds the DNS task information that requires a batch query;

-P: Specifies the port number used by the domain name server;

-t< type;: Specifies the type of DNS data to query;

-X: Perform reverse domain name query;

-4: Use IPV4;

-6: Use IPV6;

-H: Displays instruction help information.


Host: Specify to query the domain host;

Query type: Specifies the type of DNS query;

Query class: Specifies the class that queries DNS;

Query options: Specify query options.


DNS parsing www.baidu.com whole process

[Email protected] ~]# Dig @ +Trace;<<>> DiG9.8.2rc1-redhat-9.8.2-0.37. rc1.el6 <<>> @ +Trace; (1server found);; Global options:+cmd. 203653In NS a.root-servers.net .203653In NS b.root-servers.net .203653In NS c.root-servers.net .203653In NS d.root-servers.net .203653In NS e.root-servers.net .203653In NS f.root-servers.net .203653In NS g.root-servers.net .203653In NS h.root-servers.net .203653In NS i.root-servers.net .203653In NS j.root-servers.net .203653In NS k.root-servers.net .203653In NS l.root-servers.net .203653In NS m.root-servers.net.;; Received228Bytes from8.8.8.8# -( 277mscom. 172800In NS j.gtld-servers.net.com.172800In NS k.gtld-servers.net.com.172800In NS c.gtld-servers.net.com.172800In NS e.gtld-servers.net.com.172800In NS i.gtld-servers.net.com.172800In NS h.gtld-servers.net.com.172800In NS l.gtld-servers.net.com.172800In NS b.gtld-servers.net.com.172800In NS f.gtld-servers.net.com.172800In NS a.gtld-servers.net.com.172800In NS m.gtld-servers.net.com.172800In NS d.gtld-servers.net.com.172800In NS g.gtld-servers.net.;; Received491Bytes from192.5.5.241# -( 1207msbaidu.com.172800In NS dns.baidu.com.baidu.com. 172800In NS ns2.baidu.com.baidu.com. 172800In NS ns3.baidu.com.baidu.com. 172800In NS ns4.baidu.com.baidu.com. 172800In NS ns7.baidu.com.;; Received201Bytes from192.48.79.30# -( 401mswww.baidu.com. -In CNAME www.a.shifen.com.a.shifen.com.  -In NS ns5.a.shifen.com.a.shifen.com.  -In NS ns2.a.shifen.com.a.shifen.com.  -In NS ns1.a.shifen.com.a.shifen.com.  -In NS ns3.a.shifen.com.a.shifen.com.  -In NS ns4.a.shifen.com.;; Received228Bytes from61.135.165.235# -(  AMs

DNS resolution Www.baidu.com

[[Email protected] ~]# dig www.baidu.com; <<>> DiG9.8.2rc1-redhat-9.8.2-0.37. rc1.el6 <<>>www.baidu.com; global options:+cmd;; Got answer:;; ->>header<<-Opcode:query, Status:noerror,ID:61953;; Flags:qr Rd RA; QUERY:1, ANSWER:3, authority:0, ADDITIONAL:0;;                 QUESTION section:;www.baidu.com. in A;;          ANSWER SECTION:www.baidu.com. 573In CNAME www.a.shifen.com.www.a.shifen.com. 109In A220.181.112.244www.a.shifen.com.109In A220.181.111.188;; Query Time:1msec;; SERVER: -(;; when:wed Dec +  ,: $: $  .;; MSG SIZE RCVD: -

Dig Common domain Name query tool

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.