newbie: getting wireless going on hardy

NoOp glgxg at sbcglobal.net
Thu Aug 14 22:17:38 UTC 2008


On 08/14/2008 12:11 PM, Derek Broughton wrote:
> jeffrey.berger at mac.com wrote:
> 
>> Here's hosts
>> 
>> yaza at ubuntu:~$ cat /etc/hosts
>> 127.0.0.1 localhost ubuntu
>> 127.0.1.1 ubuntu
> 
> Don't do that - either give it its own address, or alias it to localhost,
> but the resolver can only use one of them (the first, iirc).
> 
Say what?

$ cat /etc/hosts
127.0.0.1 localhost wally.mshome
127.0.1.1 wally

Works quite well for me.

~$ hostname -f
wally

Ah... never mind - you are correct & I missed it on the first go around:

127.0.0.1 localhost ubuntu
should be:
127.0.0.1 localhost
or
127.0.0.1 localhost ubuntu.<workgroupname>

Jeffrey - change as Derek suggest, you don't want 'hostname -f'
resolving to 'localhost', you want it to resolve to 'ubuntu'.

[Thanks Derek :-) & apologies to Jeffrey for missing it]









More information about the ubuntu-users mailing list