Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Speed internet browsing via a local domain name server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Speed internet browsing via a local domain name server
Authored by: gbullman on Dec 23, '06 10:26:40AM

This hint is working well for me, but as originally suggested it was not automatically starting when the computer started up. Using other StartupItems as examples, I think the /System/Library/StartupItems/BIND/BIND script has to look like this to actually start the service as the machine boots up;

#!/bin/sh

. /etc/rc.common


StartService ()
{
if [ "${DNSSERVER}" = "-YES-" ]; then
ConsoleMessage "Starting BIND DNS Server"
/usr/sbin/named
fi

}

StopService ()
{
return 0
}

RestartService ()
{
return 0
}

RunService "$1"



(RunSevice... is last line in BIND script) Now it is starting up fine each time the machine starts up.



[ Reply to This | # ]