Hi all,
I just upgraded to panther and Im trying to get my new setup back to par with my old setup. My first challenge is BIND. I checked my host config, and my entry for
DNSSERVER=-YES-
was changed to no, so I set it back. I rebooted and looked in the spiffy new console and saw that BIND was being run at startup twice. I checked the spiffy new Process Viewer and saw thet, indeed, named was running twice. Interesting. I looked at my named.conf and saw that apple had kindly saved my old one and wrote out its own new one. I added my entries for my domains to this new one, vibepusher.com, beardedllama.com and thecomputercoaches.com.
Rebooted. No love.
Next I started looking more closely at the System.log and noticed that the BIND that apple was starting up used a different conf altogether.
Heres their log entry:
Nov 12 18:39:44 localhost named[430]: starting BIND 9.2.2 -c /etc/com.apple.named.conf.proxy -f
Nov 12 18:39:44 localhost named[430]: using 1 CPU
Nov 12 18:39:44 localhost bootpd[429]: interface en0: ip 24.207.218.212 mask 255.255.240.0
Nov 12 18:39:44 localhost bootpd[429]: interface en0: ip 192.168.2.1 mask 255.255.255.0
Nov 12 18:39:44 localhost named[430]: loading configuration from '/etc/com.apple.named.conf.proxy'
Nov 12 18:39:44 localhost named[430]: listening on IPv4 interface en0, 192.168.2.1#53
Nov 12 18:39:44 localhost named[430]: none:0: open: /private/etc/rndc.key: file not found
Nov 12 18:39:44 localhost named[430]: /etc/com.apple.named.conf.proxy:7: couldn't install keys for command channel 127.0.0.1#54: file not found
Nov 12 18:39:44 localhost named[430]: /etc/com.apple.named.conf.proxy:7: couldn't add command channel 127.0.0.1#54: file not found
Nov 12 18:39:44 localhost named[430]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Nov 12 18:39:44 localhost named[430]: zone localhost/IN: loaded serial 42
Nov 12 18:39:44 localhost named[430]: running
Heres my BIND log entry:
Nov 12 18:39:37 localhost named[221]: starting BIND 9.2.2
Nov 12 18:39:37 localhost named[221]: using 1 CPU
Nov 12 18:39:37 localhost named[221]: loading configuration from '/private/etc/named.conf'
Nov 12 18:39:37 localhost named[221]: listening on IPv4 interface lo0, 127.0.0.1#53
Nov 12 18:39:37 localhost named[221]: listening on IPv4 interface en0, 24.207.218.212#53
Nov 12 18:39:37 localhost named[221]: zone 0.0.127.in-addr.arpa/IN: loaded serial 5
Nov 12 18:39:37 localhost named[221]: zone beardedllama.com/IN: loaded serial 5
Nov 12 18:39:37 localhost named[221]: zone thecomputercoaches.com/IN: loaded serial 5
Nov 12 18:39:37 localhost named[221]: zone vibepusher.com/IN: loaded serial 5
Nov 12 18:39:37 localhost named[221]: running
So I thought well theres the answer. Apples bind isnt even using the conf that they moved mine out of the way for. The are using /etc/com.apple.named.conf.proxy. So I added my entries there.
Rebooted. No love.
I then checked /etc/com.apple.named.conf.proxy again to see my changes were there. They werent. Interesting.
I made the chanfes again.
Rebooted. No love.
Checked /etc/com.apple.named.conf.proxy again for my changes. They werent there. So I figured this file must be crafted on-the-fly durring startup.
So then I hit google and came up with a hit about Internet Sharing here. Seems that when you choose to share your connection, BIND is run. So I decided to find the startup items that were being executed to do this,
IPServices is the relevant startup item. I found this:
if [ -a /etc/com.apple.named.conf.proxy ]
then
ConsoleMessage "Starting Internet address sharing"
/usr/libexec/InternetSharing
fi
Gravy. I go look at /usr/libexec/InternetSharing and its a binary. I toss it on BBEdit and amid all the garbage characters is the full text of /etc/com.apple.named.conf.proxy. So, /usr/libexec/InternetSharing must create /etc/com.apple.named.conf.proxy. Weird.
At this point in my tale, both named's are running. I kill the apple one, and whoopee, iChat instantly connects, I can go to my website, everything is generally groovy.
So heres my questions.
1. How do I use Apples BIND instead of mine and be able to use internet sharing and point to my sites? Mine works, but if apple has a bind kickin' why not use it?
2. In my previous setup I had a startup item to turn on internet sharing at boot, since the pref didnt stick through a reboot. Does Panther internet sharing depend on BIND now? Did it before?
3. Basically id like to use apples stuff where possible. use thei bind to point to my domains. their control panel to enable/disable internet sharing.
4. Can I just slap my text at the end of apples text in /usr/libexec/InternetSharing amid all the garbage characters? I'd think not, but who knows. Is there some way to have /usr/libexec/InternetSharing point to my conf instead? What the heck does /usr/libexec/InternetSharing do besides foil my named service?
Sorry for rambling. I hope someone out there with more wisdom than me can decipher these ramblings and help me do what I want even if im not wise enough to ask it coherrently. =)