Unable to resolve host by name
glgxg at sbcglobal.net
Wed Nov 26 16:49:41 UTC 2008
On 11/26/2008 08:03 AM, Nils Kassube wrote:
> NoOp wrote:
>> How did I miss that? You are correct and I gave see where I caused the
>> problem by telling him:
>> > 127.0.0.1 localhost media
>> > 127.0.1.1 media
>> > 192.168.0.109 media
>> When that should have been:
>> On mystic-laptop:
>> 127.0.0.1 localhost mystic-laptop
>> 127.0.1.1 mystic-laptop
>> 192.168.0.109 media
> I think the line "127.0.0.1 localhost mystic-laptop" is not the usual
> version because the hosts file from the Xubuntu 8.10 LiveCD has these
> 127.0.0.1 localhost
> 127.0.1.1 ubuntu
> But probably it would also work with your version.
Actually it's quite usual (launchpad is full of info).
>> As for the <name>.local I found that intrepid's Network Manager seems
>> to like to add '.local' to things (even pings) regardless of what is in
>> the hosts file.
> No, I just tried that with Xubuntu 8.10 and it doesn't do that. My LAN has
> the domain .lan and if I use "ping router" it resolves "router.lan". Maybe
> it adds .local if you use interfaces with zeroconf addresses. But it
> should never add .local if the host can be resolved already from the
> hosts file or from DNS. Otherwise you could never reach any site outside
> the .local domain.
Well, I seem to be batting zero today :-)
I see that if I ping a known local machine that is not connected:
> ~$ ping gg2xp
> PING gg2xp (192.168.2.100) 56(84) bytes of data.
> From gg-laptop.local (192.168.2.102) icmp_seq=1 Destination Host Unreachable
> From gg-laptop.local (192.168.2.102) icmp_seq=2 Destination Host Unreachable
I get the '.local'. However if I ping a connected machine, the '.local'
doesn't appear. Sigh... I think I'm going to go get some more coffee.
Thanks Nils :-)
More information about the ubuntu-users