For When You Can't Have The Real Thing
[ start | index | login ]
start > dns > Dump A DNS Zone

Dump A DNS Zone

Created by dave. Last edited by dave, 15 years and 68 days ago. Viewed 7,773 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Problem

You want to know what the current content of a DNS zone is.

Possible Solution

This will work if your DNS server is friendly:

$ dig -t AXFR @$SERVER $ZONE

A reader pointed out an error I made, and adds…

The @ is important because it tells dig which dns server to ask. If you don't put the @ sign, then dig does TWO lookups, using the dns server defined in /etc/resolv.conf for both. First it tries to lookup $SERVER, then it tries to lookup $ZONE.
(Thanks Todd.)
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt