I was fiddling around with a fresh install of Server 10.3.5 and
noticed that for some reason there was some problem with using
localhost instead of 127.0.0.1
Let me guess, you come from some IPv4 only unix in your past life? :)
Obviously, one is explicitly a IPv4 address, while localhost often
equates to ::1 first and then falls over to IPv4.
Many services can speak IPv6 directly, like BIND, exim, ...
This also has an impact if you're doing any sort of firewalling.
Would not work at all:
dig version.bind txt chaos @localhost
Which works fine on a default OS X Server system. So sounds like you
have a localized misconfiguration somewhere.
So for some strange reason dig would not even contact bind at all,
just as if it could not find out what the hell localhost was.
Well it does require a lookup first, but that might not be the culprit.
So checked out /etc/hosts and found an IPV6 entry in there.
Just to be sure I removed the entry (commented it) and my /etc/hosts
now looks like this:
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
#::1 localhost
127.0.0.1 localhost
255.255.255.255 broadcasthost
Now anything relying on localhost in IPv6 may break. And since OS X
is a IPv6 based OSen (a rarity), well...
Now this strange problem went away after this change (and a reboot!)
Odd that a reboot would have been required. That smells funny right there.
My question for you guys:
Since the /etc/hosts warns about changing this entry, do any of you
guys know of the evil side-effects my removal of the IPV6 entry that
will happen ?
It can break IPv6 activities
I'm not using IPV6 at all, so this should not pose any problems ?
You probably are any don't realize it. Look at `netstat -rn` and
`ifconfig -a`. Do you see IPv6 routing? Do you see the gif0 interface?
Remote lookups to my DNS service and local lookups (and recursion
requests) all work fine with this /etc/hosts.
Realize that lookupd handles lookups. Realize that lookupd is
configured to search in an order specified. See `lookupd
-configuration` for how it's set on yoru system.
In most cases you don't want to be using /etc/hosts at all.
--
-dhan
------------------------------------------------------------------------
Dan Shoop email@hidden
Consulting Internet Architect email@hidden
AIM: iWiring http://www.iwiring.net/
Skype: danshoop http://www.ustsvs.com/
iWiring designs and supports Internet systems and networks based on
Mac OS X, unix, and Open Source application technologies and offers
24x7, guaranteed support to registered clients, at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden