Discussion Locked

See all DNS A Records...

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
is it possible to run a query against a DNS server to see all A host entries for a paticular domain?

7 replies

by Member 25308556

yea, you could use the "dig" command.
I dont remember the syntax now, but a man dig on a linux/unix system should help you out.
Or - use this service, wich is a webinterface to dig:
http://us.mirror.menandmice.com/cgi-bin/DoDig

Hope this helps!

Kai

by nico baggus

First the DNS server should allow you to do a
zone transfer. If it does a nslookup ls
can help you.

If a zone transfer is not allowed (this would
normaly be the case) you are out of luck.

kind regards,
Nico Baggus

by stress junkie

This just supplements the two previous answers.

Using the dig utility you can pass the -t AXFR parameter for a zone transfer. Here is an example command:

dig -t AXFR

Here is an experpt from the dig man page:

dig [ @server ] [ -b address ] [ -c class ] [ -f file? name ] [ -k filename ] [ -p port# ] [ -t type ] [ -x addr ] [ -y name:key ] [ name ] [ type ] [ class ] [ queryopt... ]

...

The -t option sets the query type to type. It can be any valid query type which is supported in BIND9. The default query type "A", unless the -x option is supplied to indicate a reverse lookup. A zone transfer can be requested by specifying a type of AXFR. When an incremental zone transfer (IXFR) is required, type is set to ixfr=N. The incremental zone transfer will contain the changes made to the zone since the serial number in the zone's SOA record was N.

This discussion is closed to new replies.