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

I'm trying to move 2 web-servers (with German and Russian domain names) from one hoster to another one (where I can create/maintain own DNS zones).

Before changing anything, I'd like to fetch and save the current zone file (sp?) for future reference.

On my CentOS 6 machine (not the web server to be moved) I've installed jwois packet and then I'm trying:




but it returns some free-formatted (and differently-formatted) text. How do I fetch the zone file or whatever it is called (sorry, I have knowledge gaps there)?

share|improve this question
up vote 2 down vote accepted

You do not use whois to perform zone transfers.

If zone transfers are permitted on name server for the current domain, then you could use a command like host -t axfr where ns1 is an authoritative name servers that permit zone transfers.

share|improve this answer
FYI - host is considered obsolete by its authors. – Alnitak Nov 3 '11 at 18:11
@Alnitak, which fork? AFAIK, there are at least two separate forks of host. – Zoredache Nov 3 '11 at 18:53
@Zorecache the official ISC version. Serious DNS heads use 'dig' :) – Alnitak Nov 4 '11 at 8:22

You likely can't do zone transfers from the current DNS hosts - most don't permit it.

However given that you ought to know what names actually exist in your own zones, why not just ask for them?

 % dig a       ; for 'bare' web site address
 % dig mx      ; for email servers
 % dig a   ; for www web site address

Repeat for any other names you happen to have, but the above would cover 99% of configurations.

There'll be SOA and NS records too, but you don't need to copy those - they'd be automatically set up by the new DNS host.

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.