Comments on Clean djbDNS DNS Server On CentOS - dnscache And tinydns - A To Z

Clean djbDNS DNS Server On CentOS - dnscache And tinydns - A To Z What is djbDNS? And why do we use djbDNS? There is a new point of view to serve the dns service - each of the dns server functionalities is a separate service, like authority, cache, forward and so on. The other difference is the daemon-tools which will rapidly restart services to prevent zombies.

7 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Bob Gustafson

See Correction:

# cd djbdns-1.05

# vi conf-cc

By: Anonymous

i got this warning.

 svc -u /service/dnscache
svc: warning: unable to control /service/dnscache: supervise not running

By: Chris @ Sift

make sure you have added the line to end of /etc/inittab

SV:123456:respawn:/command/svscanboot

save and run the command

init q 

this brings up supervise - also if you want to stop supervise anytime just edit /etc/inittab has out and run

init q again to turn off supervise.

By: Arif Mazlan

If u are on Centos 6..there are new "init" script replacement called upstart. you have to create config file in /etc/init/daemontools.conf

 # daemontools

start on runlevel [2345]

stop on runlevel [016]

 respawn

exec /command/svscanboot

to start the daemontools run below command

initctl start daemontools 

 link http://qmail.jms1.net/daemontools/upstart.shtm

By: Bob Gustafson

See correction:

# cd ucspi-tcp-0.88

# vi conf-cc

By: bobgus

The shell 'csh' is pretty old. It may be the case that your system has a later shell, such as 'sh'.

 If 'which csh' shows that you do not have 'csh', then modify the file:

    /root/pkg/admin/daemontools/package/boot.rclocal

replace 'csh' with 'sh'

By: Munga Lal shaw

Replacement of initab is systemctl on CentOS 7 . To start the daemontools on centos7 using systemctlCentOS 7 uses systemdCreate a new file /etc/systemd/system/daemontools.service, with the startup code in it:

[Unit]Description=daemontools Start superviseAfter=getty.target

 

[Service]Type=simpleUser=rootGroup=rootRestart=alwaysExecStart=/command/svscanboot /dev/ttyS0TimeoutSec=0

[Install]WantedBy=multi-user.target

Start the service:

systemctl start daemontools.service

Test that it is running:

systemctl status daemontools.service

Enable it to start at boot:

systemctl enable daemontools.service