bind, named and sendmail in 10.2

Aug 25, '02 11:09:25PM

Contributed by: rgould

It's really nice that Apple includes the BIND (named) setup by default. But they forgot to spell check! Modify the BIND file located at /System -> Library -> StartupItems -> BIND, and fix this line:

  if [ "${DNSSSERVER:=-NO-}" = "-YES-" ]; then
to only include two "S" characters instead of three. Then go change NO to YES in the /etc/hostconfig file to get named to start correctly.

Read the rest of the article for more on named, bind, and sendmail...

Once you've made the first two changes, go to /var/named/localhost.zone and add the names of your local machines:

  bubba     A     192.168.1.2
jones A 192.168.1.3
It wouldn't hurt to also add them to /var/named/named.local.

Next go to the "Network" control panel and create a new location. For the DNS server, enter "127.0.0.1" and for the search domain enter "localhost". Then reboot or run:
  % /usr/sbin/named
to get it going immediately.

sendmail also works this time around. I did a:
  % chmod g-w /
to make it happy. Then I set all my email accounts to use "localhost" as the SMTP server. Make sure to edit the:
  /etc/mail/local-host-names
file and add the local machine and the usual suspects on your local network (if you want them to use you as the SMTP gateway):
  localhost
bubba
jones
Although it appeared to work better when it was first loaded, 10.2 quickly forgot about its favorite internet applications and started using Internet Exploder. So you need to go do the old tricks in /System -> Library -> PreferencePanes -> Internet.prefPane -> Contents -> Resources -> English.lproj -> DefaultHelperApps.plist.

these few things make all the difference. Of course, all this should be done as root:
  % sudo su

Comments (11)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20020825230925806