PDA

View Full Version : Problems With DNS in Cpanel


cooltop
21st August 2008, 19:53
Okay got cpanel installes on Centos 5.2. You can reach it by the IP number but is not able to bring it up by doing www.whatever.com. I Know the register side is right b/c it works fine through my Win Server machine. I am replacing it with mt Centos box. So here is what i know so far under server status its says


named has failed, please contact the sysadmin (result was "named is not running"). Aug 21 12:44:32 ns1 named: none:0: open: /etc/named.conf: file not found


okay and when i try to name it or edit file it says

zone huntingla.net/IN: loaded serial 2008082112
OK

Bind reloading on ns1 using rndc zone: [huntingla.net]
Error reloading bind on ns1: rndc: connect failed: 127.0.0.1#953: connection refused




If anyone knows how to fix this please let me know thanks

cooltop
21st August 2008, 22:26
Falco if you would like the login details to look at let me know and I will give them to you. Its a new server so there really not much there to mess up or anything

falko
22nd August 2008, 13:33
Does /etc/named.conf exist? If so, what's in it, and what's the output of ls -l /etc/named.conf?

cooltop
22nd August 2008, 14:23
Okay Got it working this is what I had to do for anyone else needing to know


First, I commented out the following line in /etc/sysconfig/named:

ROOTDIR=/var/named/chroot

Then, I checked for the bind-chroot package, which did not exist.

I removed the symbolic links to the chroot'd named.conf files from /etc/,
copied the zones from /var/named/chroot/var/named to /var/named and ran:

/scripts/rebuildnamedconf
/scripts/fixnamedviews
/etc/init.d/named restart



also for note: Named was set to run in a chroot'd configuration (according to
/etc/sysconfig/named) but the configuration was not fully built to support this
setup. (Additionally, cPanel does not yet support chroot'd named.
So named has to use a standard configuration.

So after all that figuring out that CPANEL does not support CHROOT'D it made more since