automatically move DNS

michalmas

Verified User
Joined
Feb 10, 2009
Messages
11
Hello guys,

I need to automatically move all domain names from my old DNS server (automatically, as there are something like 200 of them).

I tried to copy configuration files from old one, next i added zone in named.conf manually. Unfortunatelly, DA only recognizes new zone, but no entries inside it (in DA panel i see domain, but no Domain Records).

Other things with moving DNS request to new server i can handle automatically.

Can you help with that?

Thanks,
M.
 
I need to automatically move all domain names from my old DNS server (automatically, as there are something like 200 of them).
As admin, at the DNS screen, click on the word Select at the top of the column with all the checkboxes; it'll select all of them.
I tried to copy configuration files from old one, next i added zone in named.conf manually. Unfortunatelly, DA only recognizes new zone, but no entries inside it (in DA panel i see domain, but no Domain Records).
Could be lots of reasons; first is to check the rights/ownership of the zone files to make sure BIND and DirectAdmin can both read them.

Then check to make sure the references in the zone file are to the proper location.

Next check to make sure there aren't any typos.

Jeff
 
As admin, at the DNS screen, click on the word Select at the top of the column with all the checkboxes; it'll select all of them.

I am moving DNS from old server, where there is no direct admin.
Could be lots of reasons; first is to check the rights/ownership of the zone files to make sure BIND and DirectAdmin can both read them.

Then check to make sure the references in the zone file are to the proper location.

Next check to make sure there aren't any typos.

I created manually one domain, then copied evrything as was initially. Rights are the same, owners as well, added in zone, no typos (configuration worked on old server).

DA just displays nothing from this zone.
 
I misread your original anyway; where you wrote move I read it as remove.

So I'll start over:
I need to automatically move all domain names from my old DNS server (automatically, as there are something like 200 of them).
I don't know of anyone who's written a script to do that generically. You should tar up the original directory in which the old server keeps the zone files, and then move it to the new server, and untar it there, into the same directory where the new server keeps the zone files. If both servers don't use the same naming convention you can write a script to change the ones from the old server to the same convention as used on the new server.

You'll also have to copy over the zone lines from the named.conf file on the old server to the new file and paste them into the named.conf file on the new server. If the file names or locations are different, make sure they match the names and locations on the new server.

When you're done, restart bind. Check the /var/log/messages log to make sure you haven't made any mistakes.
I tried to copy configuration files from old one, next i added zone in named.conf manually. Unfortunatelly, DA only recognizes new zone, but no entries inside it (in DA panel i see domain, but no Domain Records).
DirectAdmin gets the zone name from the listing in the named.conf file, but gets the records from the zone file. So if you don't have anything in the zone file make sure that the files are in the correct place, that they're named the way DirectAdmin expects, and that they have the proper ownership.

Are you sure all the above is correct? lf you are, then you should probably have someone else look at your work (we offer commercial services; please contact me by email using the address in my siglines below if you're interested in hiring us), because there's most likely a mistake somewhere.

Jeff
 
Back
Top