DNS Clustering - 2nd Nameserver always broken

SeanLee

Well-Known Member
May 23, 2004
52
1
156
In a previous thread, http://forums.cpanel.net/showthread.php?t=64647, a user has a problem with DNS clustering which results in the nameserver returning "Can't list domain <domain name>: BAD ERROR VALUE." - I'm also having this problem.

After following Chirpy's suggestions in the above referenced post:
It could be that the zones have not propagated properly to the new server. Check in /var/named/ on the new server and see if it does indeed have all the expected .db files, also check /etc/named.conf for the same. If not, login to one of the cluster servers that is correct and run WHM > Synchronize DNS Records > Sync All. This can take some time to complete and use considerable server resources on all DNS cluster members, but when complete all the members ought to have the same zone file information within /etc/named.conf and /var/named/
I am still having the same problem with *only* my NS2 returning BAD ERROR VALUE when I look anything up against it.

As far as I can tell, my NS1 (cPanel/WHM Server) is setup correctly; the /etc/named.conf file contains proper statements for all the domains (zone files) I am hosting. For example:
Code:
zone "mydomain.com" {
        type master;
        file "/var/named/mydomain.com.db";
};
On my clustered (cPanel's DNS ONLY) server, which is my NS2, there is no reference to any of my zone files in /etc/named.conf - however, all of the zone files DO EXIST in /var/named.

I even tried a clean setup from scratch and get the same results. I've tried syncing everything. Any suggestions?

I am running CentOS 5.2 for both instances. All firewalls have also been removed for this NS2 until I can find out what is causing the problem.

Thanks,

-Sean
 

nijn

Registered
Aug 2, 2005
2
0
151
I could populate named.conf by using the slow sync method. That one doesn't seem to be available in 11.24 though...
 

jimmy1987

Member
Feb 27, 2008
18
0
51
Why don't you just copy your named.conf from your working server ro your NS2 then?
I had it once that my NS2 server had all the necessairy .db files but the named.conf was empty, put my good one in there. Never had any problems with it again, and have registered about 40 domains after that.
 

SeanLee

Well-Known Member
May 23, 2004
52
1
156
Why don't you just copy your named.conf from your working server ro your NS2 then?
I had it once that my NS2 server had all the necessairy .db files but the named.conf was empty, put my good one in there. Never had any problems with it again, and have registered about 40 domains after that.
The problem isn't with named.conf.

The problem is with the zone.db files not transferring.

Yes, I can manually copy the zone files over to NS2. Then when I setup a new domain, I am stuck in the same situation - NS2 has the proper entry in named.conf, but doesn't have the zone file.

-Sean