Skip to content

Dig All Pointings of a Zone File

First, use dig technicalguy.org NS to find out what are the Nameservers (eg, abc.xyz.com)

Then, dig @abc.xyz.com technicalguy.org AXFR

This will retrieve all records in a Zone file from the DNS server

Categories: Free Tools.

Comment Feed

2 Responses

  1. Thanks for the info.

    What if the nameserver disallows this dig? Is there a backup plan for determining all zone records?

    Here is an example of what I mean by the NS disallowing the dig:

    gavin@ubuntu:~/Desktop$ dig google.com NS

    ; <> DiG 9.6.1-P2 <> google.com NS
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50018
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;google.com. IN NS

    ;; ANSWER SECTION:
    google.com. 5 IN NS ns4.google.com.
    google.com. 5 IN NS ns1.google.com.
    google.com. 5 IN NS ns3.google.com.
    google.com. 5 IN NS ns2.google.com.

    ;; Query time: 35 msec
    ;; SERVER: 192.168.242.2#53(192.168.242.2)
    ;; WHEN: Mon Jan 17 12:43:36 2011
    ;; MSG SIZE rcvd: 100

    gavin@ubuntu:~/Desktop$ dig @ns1.google.com google.com AXFR

    ; <> DiG 9.6.1-P2 <> @ns1.google.com google.com AXFR
    ; (1 server found)
    ;; global options: +cmd
    ; Transfer failed.



Some HTML is OK

or, reply to this post via trackback.

Continuing the Discussion

  1. [...] to ‘Dig All Pointings of a Zone File‘. I managed to list out the list of pointing for abc.com. We discover xyz.abc.com is not [...]