Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-07-2014, 05:20 PM   #1
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
dns: request all host records?

Can dig (or some other tool) ask a dns server to give you all A/AAAA records for a zone? Seems like that would be rather handy, but somehow missing it in the manual pages...
Old 01-08-2014, 03:06 AM   #2
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
dig @server_ID <name of zone file>
In case a TSIG is required, use -k <path of file containing the TSIG key>

IDK about other validating mechanisms apart from TSIG.

EIDT: that gives the entire zone file; you could post-process the output to get only the record types you want.

Last edited by catkin; 01-08-2014 at 03:07 AM.
Old 01-08-2014, 03:25 AM   #3
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
dig @host zone
does only answer the host entries for the specified zone. (in my case, the zone file equales the zone name, so I can't vouch for situation where that would be different.

dig axfr @host zone
would do a zone transfer though if settings allow (!!), so you can parse indeed as catkin mentions. you'd have to grep for A and AAAA fields.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS NS's in registrar vs DNS NS records sopiaz57 Linux - Networking 7 06-06-2009 07:20 PM
DNS Zone Records - MX Records ddzc Linux - Software 8 05-24-2007 02:26 PM
DNS and MX Records... jademan83 Linux - Networking 1 07-09-2005 12:02 PM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 04:43 AM
Old DNS records Matir Linux - Networking 2 02-11-2005 01:44 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration