Bind-9.2.0

earla

Registered
I'm tring to get bind to start at boot-up but the script doesn't work. These are the instructions I have:

Thanks,
Earl

============================================
Provided by Dymas
============================================
[localhost:/etc] baptiste% sudo mkdir /Library/StartupItems/

4 - Now we create a folder to put the startup script in.

Type the following:

[localhost:/etc] baptiste% sudo mkdir /Library/StartupItems/BIND

5 - Now let's go to the new folder and create two new files.

[localhost:/etc] baptiste% cd /Library/StartupItems/BIND

6 - The first file is the actual script.

Type the following:

[localhost:/Library/StartupItems/BIND] baptiste% sudo pico BIND

copy the following code:
quote:
#!/bin/sh

##
# Start DNS server (BIND/named)
##

. /etc/rc.common

if [ "${BIND:=-NO-}" = "-YES-" ]; then

ConsoleMessage "Starting BIND DNS"

/usr/local/sbin/named

fi


than do control-o to save it, and control-x to exit pico

7 - Now we have to make it executable since it's a script. Very important or it won't work!

Type the following:

[localhost:/Library/StartupItems/BIND] baptiste% sudo chmod +x BIND

8 - Okay now last file.

Type the following:

[localhost:/Library/StartupItems/BIND] baptiste% sudo pico StartupParameters.plist

copy the following code:
quote:
{
Description = "BIND domain name server";
Provides = ("DNS");
Requires = ("Disks", "Resolver", "Desktop DB", "Input Managers");
OrderPreference = "None";
Messages =
{
start = "Starting BIND DNS server...";
stop = "Stopping BIND DNS server...";
};
}


than do control-o to save it, and control-x to exit pico

9 - Cool. We're almost done. One last step. We have to edit the hostconfig file. OS X looks in the file to see
what scripts it should run. The file is stored in /etc

Type the following:

[localhost:/Library/StartupItems/BIND] baptiste% cd /etc

Now edit the file:

[localhost:/etc] baptiste% sudo pico hostconfig

add this line to the end of the file:
quote:
BIND=-YES-


than do control-o to save it, and control-x to exit pico

10 - That's it! Go ahead and reboot. Once you log back into OS X you can check to see if BIND is running:

Type the following:
 
Thanks for the help! I didn't mention that this is OSX, are we on the same page? Also what is wrong if anything from the startup script and configuration that was given me? I appreciate your script if you can e-mail it please.

Thanks,
Earl
 
Back
Top