Web Hosting Talk







View Full Version : Hostname / DNS Setup in WHM


pixd
04-19-2004, 12:45 PM
I'm stumped. I thought I set everything up right (this is my first server with WHM/Cpanel though), but every time an A record is added, I get the following (or a similar) message...

IP=67.18.41.74 Bind reloading on s1 using rndc zone: [pixdserver.com] Error reloading bind on s1: rndc: connect failed: connection refused Add Complete

My host name is s1.pixdserver.com and my /etc/hosts file looks like

67.18.41.74 s1.pixdserver.com
127.0.0.1 localhost

Versions: WHM 9.2.0 cPanel 9.2.0-R20 on Linux RH Enterprise 3

I've restarted bind, and the whole server, yet the error still shows. Adding websites works, they resolve to the name server, but it's this phantom error that worries me... If anyone have any tips / advice as to how to fix this, what's wrong, etc.. I'd appreciate it :)

sprintserve
04-19-2004, 01:02 PM
try /scripts/fixndc

pixd
04-19-2004, 01:34 PM
I tried changing the hostname to velocity.pixdserver.com but that didn't solve it (this was before I got frustrated and posted here) I changed it back to s1.pixdserver.com afterwards and all of the suddent I don't have a DNS record for it (or velocity) anymore, I don't know if maybe that's what the problem is. After I ran what you just said I got the following output.
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.

named started ok
Apr 19 13:30:57 velocity named: named shutdown failed
Apr 19 13:30:58 velocity named: named shutdown failed
Apr 19 13:30:58 velocity named[2441]: starting BIND 9.2.2 -u named
Apr 19 13:30:58 velocity named[2441]: using 1 CPU
Apr 19 13:30:58 velocity named[2441]: loading configuration from '/etc/named.con
f'
Apr 19 13:30:58 velocity named[2441]: no IPv6 interfaces found
Apr 19 13:30:58 velocity named[2441]: listening on IPv4 interface lo, 127.0.0.1#
53
Apr 19 13:30:58 velocity named[2441]: listening on IPv4 interface eth0, 67.18.41
.74#53
Apr 19 13:30:58 velocity named[2441]: listening on IPv4 interface eth0:1, 67.18.
41.75#53
Apr 19 13:30:58 velocity named[2441]: /etc/named.conf:25: couldn't find key 'rnd
ckey' for use with command channel 127.0.0.1#953
Apr 19 13:30:58 velocity named[2441]: command channel listening on 127.0.0.1#953
Apr 19 13:30:58 velocity named[2441]: zone 0.0.127.in-addr.arpa/IN: loaded seria
l 1997022700
Apr 19 13:30:58 velocity named[2441]: zone pixdserver.com/IN: loaded serial 2004
041915
Apr 19 13:30:58 velocity named[2441]: zone ns1.pixdserver.com/IN: loaded serial
2004041901
Apr 19 13:30:58 velocity named[2441]: zone ns2.pixdserver.com/IN: loaded serial
2004041901
Apr 19 13:30:58 velocity named[2441]: zone localhost/IN: loaded serial 42
Apr 19 13:30:58 velocity named: named startup succeeded
Apr 19 13:30:58 velocity named[2441]: running
Apr 19 13:30:58 velocity named[2441]: zone pixdserver.com/IN: sending notifies (
serial 2004041915)
Apr 19 13:30:58 velocity named[2441]: zone ns1.pixdserver.com/IN: sending notifi
es (serial 2004041901)
Apr 19 13:30:58 velocity named[2441]: zone ns2.pixdserver.com/IN: sending notifi
es (serial 2004041901)
Apr 19 13:31:08 velocity named[2441]: invalid command from 127.0.0.1#32899: bad
auth
Done
All fixed
Now when I try adding an A record I get....

IP=67.18.41.74 Bind reloading on s1 using rndc zone: [pixdserver.com] Error reloading bind on s1: rndc: connection to remote host closed This may indicate that the remote server is using an older version of the command protocol, this host is not authorized to connect, or the key is invalid. Add Complete

pixd
04-19-2004, 01:53 PM
I've got it! :D

Take a look at this thread

http://www.webhostingtalk.com/showthread.php?threadid=253245

If any of you ever have a similar problem.