Alternative solution for fixing named not being reloaded

Paul K

Verified User
Joined
Dec 1, 2011
Messages
22
For this (http://help.directadmin.com/item.php?id=40) FAQ item, there is another solution that will fix it. For me, the solution in this FAQ did not even work.

A simple solution:
Create a dns_write_post.sh in /usr/local/directadmin/scripts/custom, put in
Code:
/etc/init.d/named reload

(Dont forget to chmod 755)

Now your named will be reloading correctly :)
 
I never heard of named not being reloaded... I am sure you have some other problem.
 
Why are they restarting it that way...

Whats wrong with:

/usr/sbin/rndc reload

You could also reload a single zone too and test for problems against only that zone.
 
Why are they restarting it that way...

Whats wrong with:

/usr/sbin/rndc reload

You could also reload a single zone too and test for problems against only that zone.

I haven't said my solution is the best, I just noticed that while creating domains the named server was not reloaded and therefore the domain would not resolve. This FAQ item was exactly the problem I had, but it did not have the right solution. After applying this fix, it worked so I thought sharing it might help so people.
 
Back
Top