Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a tool that will take the information from a DNS lookup like dig and turn it into a bind configuration file? (In this case is an example, i would be using a domain that I own, but i don't have access to the bind config file.)

share|improve this question
up vote 6 down vote accepted

Normally you'd want to have the domain's owner allow you to perform an AXFR to fetch the whole zone. However, you can get a start to a functioning zone:

dig +multiline any >

The above will load but probably not be of much use. Anyway, point is the output of dig is conveniently formatted for BIND.

If you can get whomever is operating your DNS to allow transfers (the allow-transfer statement for BIND) you can do.

dig +multiline axfr >

This will be a complete copy of the zone file. If you want to go a step further, you can ask them to send you notifies whenever the serial number of the zone is incremented. Then you can set up your own slave nameserver:

zone "" {
    type slave;
    file "";
    masters {;

That'll get a copy of the zone file whenever it is updated on the master.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.