Problem reloading and restarting named, in DA and by SSH

Christophe1

Verified User
Joined
Aug 24, 2008
Messages
48
Location
Belgium
Hi all,

When I add a new domain to the server, DA isn't reloading named, so the domain doesn't resolve.

Now, I even have problems restarting named by SSH; it's like named is hanging. Minutes later I still can't use the shell. I have to start a new shell to do a killall named. Same problem with restarting named in directadmin, so I think the problem is't directadmin, but named itself.

After a few times trying to stop/start, a few reloads, a few restarts and mostly also a few killall named, finally the new added domain resolves.

Any suggestions? it's a Debian 4.0/custombuild server.

I found this in the knowledge base:

On some systems, the named boot script provided with the bind rpms don't seem to reliably reload the named program. You can obtain a new named boot script by running the following (RedHat):
cd /etc/init.d
mv named named.backup
wget http://www.directadmin.com/named
chmod 755 named
/sbin/chkconfig named reset

This boot script uses are more direct method of reloading named.

Note, if you're using debian, use:
www.directadmin.com/named.debian

So in debian I did:

cd /etc/init.d
mv named named.backup
wget http://www.directadmin.com/named.debian
mv named.debian named
chmod 755 named
/etc/init.d/named restart

Still have the same problem...
I just noticed that when I typ /etc/init.d/bind restart, it works fine :confused:
 
Last edited:
Hello,

named/bind is one of the packages that DirectAdmin uses but doesn't install it's own specific copy.. it's installed for apt, yum, or ports, etc.. so it would seem that some OS's have different flavors of it.

That being said, if /etc/init.d/bind works fine, then use it. Type:
Code:
cd /etc/init.d/
rm -f named
ln -s bind named
so that named links to bind.

John
 
Back
Top