Operating System - HP-UX
1833787 Members
2412 Online
110063 Solutions
New Discussion

Re: How to start DNS server on boot up

 
SOLVED
Go to solution
Gary Cooper_1
Esteemed Contributor

How to start DNS server on boot up

I have just set up an HP-UX 11.11 machine as a DNS server (bind 9.2). I started named manually and all seemed OK, however, I forgot the reboot aspect and sure enough, the next time the machine was booted named wasn't restarted.

Where do I set this up? Is it just the NAMED setting in /etc/rc.config.d/namesvrs?

Thanks,

Gary
5 REPLIES 5
T G Manikandan
Honored Contributor
Solution

Re: How to start DNS server on boot up

make sure you make NAMED=1 in the /etc/rc.config.d/namesvrs file

Hoefnix
Honored Contributor

Re: How to start DNS server on boot up

make sure there is a link placed to /sbin/init.d/named in the /sbin/rc3.d.
The link should have a name like S937named

The number after the S is the order number of started sw in runlevel 3.

Also set NAMED var in /etc/rc.config.d/namesvrs to 1.

To finish it create a link in /sbin/rc2.d or /sbin/rc1.d named K100named to shut it down in the wanted runlevel or during reboot.

Regards,

Peter
Sunil Sharma_1
Honored Contributor

Re: How to start DNS server on boot up

Yes /etc/rc.config.d/namesvrs that is the only file.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Fabio Ettore
Honored Contributor

Re: How to start DNS server on boot up

Yeah,
named starts at every reboot if into /etc/rc.config.d/namesvrs NAMED is set to 1.

Best regards,
Ettore
WISH? IMPROVEMENT!
Todd McDaniel_1
Honored Contributor

Re: How to start DNS server on boot up

Actually,

All of my boxes have this in rc2.d NOT rc3.d...I am pretty sure it should be in rc2.d so it will start up before you reach multi-user mode.

Most if not all of your network related/dependent daemons start at runlevel 2.

root-:/sbin/rc2.d
# ll *named*
lrwxr-xr-x 1 root root 18 Jan 25 2002 S370named -> /sbin/ini
t.d/named

KXXXnamed is linked to /sbin/rc1.d from /sbin/init.d/named
Unix, the other white meat.