Dig command details

Source: Internet
Author: User
Tags mx record

Dig command details 1. view the domain name's A record # dig yahoo.com; <> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <> yahoo.com; global options: + cmd; Got answer :;; -> HEADER <2. view the ip address of the domain name # dig yahoo.com + short 98.139.183.24 72.30.38.140 98.138.253.109 3. view the MX record of the domain name # dig yahoo.com MX; <> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <> yahoo.com MX; global options: + cmd; Got answer :;; -> HEADER <-opcode: QUERY, status: NOERROR, id: 31450; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 24; question section:; yahoo.com. in mx; answer section: yahoo.com. 33 in mx 1 mta6.am0.yahoodns.net. yahoo.com. 33 in mx 1 mta7.am0.yahoodns.net. yahoo.com. 33 in mx 1 mta5.am0.yahoodns.net. 4. view the domain name SOA record # dig yahoo.com SOA; <> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <> yahoo.com SOA; global options: + cmd; Got answer :;; -> HEADER <-opcode: QUERY, status: NOERROR, id: 2197; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 7; question section:; yahoo.com. in soa; answer section: yahoo.com. 1800 in soa ns1.yahoo.com. hostmaster.yahoo-inc.com. 2012081409 3600 300 1814400 600 5. query the domain name TTL record # dig yahoo.com TTL; <> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <> yahoo.com TTL; global options: + cmd; Got answer :;; -> HEADER <-opcode: QUERY, status: NOERROR, id: 56156; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0; question section:; yahoo.com. in a; answer section: yahoo.com. 3589 in a 98.138.253.109 yahoo.com. 3589 in a 98.139.183.24 yahoo.com. 3589 in a 72.30.38.140 6. view content # dig yahoo.com + nocomments + noquestion + noauthority + noadditional + nostats; <> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6 <> yahoo.com + nocomments + noquestion + noauthority + noadditional + nostats; global options: + cmd yahoo.com. 3442 in a 72.30.38.140 yahoo.com. 3442 in a 98.138.253.109 yahoo.com. 3442 in a 98.139.183.24 7. query all DNS record types # dig yahoo.com ANY + noall + answer; <> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6 <> yahoo.com ANY + noall + answer; global options: + cmd yahoo.com. 3509 in a 72.30.38.140 yahoo.com. 3509 in a 98.138.253.109 yahoo.com. 3509 in a 98.139.183.24 yahoo.com. 1709 in mx 1 mta5.am0.yahoodns.net. yahoo.com. 1709 in mx 1 mta6.am0.yahoodns.net. yahoo.com. 1709 in mx 1 mta7.am0.yahoodns.net. yahoo.com. 43109 in ns ns2.yahoo.com. yahoo.com. 43109 in ns ns8.yahoo.com. yahoo.com. 43109 in ns ns3.yahoo.com. yahoo.com. 43109 in ns ns1.yahoo.com. yahoo.com. 43109 in ns ns4.yahoo.com. yahoo.com. 43109 in ns ns5.yahoo.com. yahoo.com. 43109 in ns ns6.yahoo.com. 8. DNS reverse query # dig-x 72.30.38.140 + short ir1.fp.vip.sp2.yahoo.com. 9. query multiple DNS records # dig yahoo.com mx + noall + answer redhat.com ns + noall + answer; <> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6 <> yahoo.com mx + noall + answer redhat.com ns + noall + answer; global options: + cmd yahoo.com. 1740 in mx 1 mta6.am0.yahoodns.net. yahoo.com. 1740 in mx 1 mta7.am0.yahoodns.net. yahoo.com. 1740 in mx 1 mta5.am0.yahoodns.net. redhat.com. 132 in ns ns1.redhat.com. redhat.com. 132 in ns ns4.redhat.com. redhat.com. 132 in ns ns3.redhat.com. redhat.com. 132 in ns ns2.redhat.com.

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.