Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-07-2014, 05:20 PM
|
#1
|
Member
Registered: Jan 2013
Distribution: Debian
Posts: 166
Rep:
|
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...
|
|
|
01-08-2014, 03:06 AM
|
#2
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
Code:
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.
|
|
|
01-08-2014, 03:25 AM
|
#3
|
Member
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372
Rep:
|
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.
Code:
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.
|
|
|
All times are GMT -5. The time now is 09:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|