天际说

Running DirectAdmin without bind(named)

发布时间:2014年3月23日 / 分类:DirectAdmin相关 / 6,102 次围观 / 抢沙发!

I do not want to run DNS services on my DirectAdmin Server.

If you wish to control all DNS services on another server and do not need to run named (bind) on your DirectAdmin server, you can disable it by doing the following.

1) Edit /usr/local/directadmin/data/admin/services.status and set:

named=OFF


2) Stop named:
RedHat:

/sbin/service named stop
chkconfig named off


FreeBSD:

/usr/local/etc/rc.d/named stop



3) Edit /etc/init.d/named (FreeBSD: /usr/local/etc/rc.d/named) and set the file to show:

#!/bin/sh
exit 0;

This will let DirectAdmin think that it's reloading named, while the script will actually do nothing.

With these changes the dns settings will still be made, but no program will be running to host them so they will have no effect.

标签:none