Do you have it installed? I assume you do since you are asking how to start :-)
Anyway...this is how you check if you have it installed (if you installed it by a pkg)
Code:
root@host# pkginfo | grep bind
As root cd into /etc/init.d/ and create a file called named that has something like this (your paths will probably be different):
Code:
#!/sbin/sh
#
case "$1" in
'start')
if [ -f /etc/named.conf -a -x /usr/sbin/named ] ;then
echo "Starting DNS name daemon ..."
/usr/sbin/named &
else
echo "Did not start DNS name daemon ..."
fi
;;
'stop')
echo "Stopping DNS name daemon"
kill -HUP `cat /var/named/named.pid`
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
Then make it executable...
Code:
root@host# chmod +x named
Now make your symbolic links so that you can start at boot...
Code:
root@host# ln -s /etc/init.d/named /etc/rc3.d/S95named
root@host# ln -s /etc/init.d/named /etc/rc0.d/K03named