Addon domains not resolving, named.conf buggered


Nov 28, 2005
I'm trying to solve a problem for my client.

We, the host, (I'll refer to us as, provide the client ( with a reseller package.

This allows him to make use of cpanel's addon domains.
Now, when he adds a domain, it won't resolve. In fact, there is no IN A record for the domain at all on lookup.

I've added the domain to his account using this feature. I've checked the file in /var/named and it is accurate, I've also reloaded named several times.

I've run dig and I get the same problem with every addon domain:

Gluttony:/etc/bind# dig

; <<>> DiG 9.3.1 <<>>
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 15195
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

; IN A

;; Query time: 205 msec
;; WHEN: Mon Nov 28 03:16:33 2005
;; MSG SIZE rcvd: 28

The IN A record is blank/nonexistant, yet these are very clearly defined in the named entry for it. I've checked all other files and they seem to be correct (and yes, there is a zone for it in /etc/named)

named-checkzone /var/named/ comes up ok, but the same command for and come up with the following:

zone has no NS records

I'm at a loss for what could possibly be wrong here.


Nov 10, 2005
The first two things I would try is as follows.

Stop bind and start it with `named -d9`

This starts it in debug mode. View in the current directory and it may give you a clearer view as to what the issue is.

Next, verify that the zone was added to a place that named is looking. I have noticed that CPanel uses the -t flag to specify a custom directory for named.

Otherwise, if you could post a copy of your zone file I can look at it.


Nov 28, 2005
I managed to get it sorted...
It seems cpanel hijacks named and runs chroot.

Not only that, but the zone files being created by cpanel were hideously flawed (checkzone wouldn't even validate them. Once I rewrote it by hand the domain worked.) I had to patch the zone template and remove/readd every domain.

This is a brand new cpanel install, so perhaps some one should look into the packaged zone file, it was very strange (things like the account owner's username was floating around in the SOA)