Importing DNS Zones

cleavoy

New member
Joined
May 5, 2006
Messages
4
I'm looking into importing a bunch of domains into directadmin's dns administration.

I figured I could add the domains to named.conf and create the zone.db files. This works, but directadmin isn't reading the zone.db files, it shows no records when editing the domain.

I suspect directadmin requires a special format of the zone.db file. Has anyone run into this?

What would the proper way be to import dns zones so that directadmin can manage the zones properly?

I ran into this post: here but I'd rather not spend a day writing a php script to import the zonefiles and then have it not work.

-- Chris
 
This layout (created manually on one of our servers) works fine. Note all spacing and that I use tabs between columns, not spaces.
Code:
$TTL 600
@       IN      SOA     ns1.example.net.      root.example.com. (
                                                2006051900
                                                7200
                                                3600
                                                1209600
                                                600 )

example.com.    600     IN      NS      ns1.example.net.
example.com.    600     IN      NS      ns2.example.net.

example.com.    600     IN      A       192.168.3.3
ftp     600     IN      A       192.168.3.3
localhost.example.com.  600     IN      A       127.0.0.1
mail    600     IN      A       192.168.3.3
pop     600     IN      A       192.168.3.3
www     600     IN      A       192.168.3.3

example.com.    600     IN      MX      0 example.com.



example.com. IN TXT "v=spf1 a mx ip4:192.168.3.3 ?all"
 
We're looking at something similar but the problem is DA only seems to pull the zones from /etc/named.conf but the program we use stores them in a separate .conf and named.conf has an include for that but DA doesn't read it.

Any idea what the file/script is that DA runs when it pulls in the list from named.conf? - Then we might be able to include the other .conf file as well so it can pull in those domains as well.

Cheers.
 
Back
Top