Unable to resolve host by name

NoOp 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:
>> >  localhost media
>> >  media
>> >
>> > media
>> When that should have been:
>> On mystic-laptop:
>>  localhost mystic-laptop
>>  mystic-laptop
>> media
> I think the line "  localhost mystic-laptop" is not the usual 
> version because the hosts file from the Xubuntu 8.10 LiveCD has these 
> entries:
>  localhost
>  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.
> Nils

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 ( 56(84) bytes of data.
> From gg-laptop.local ( icmp_seq=1 Destination Host Unreachable
> From gg-laptop.local ( 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 mailing list