set FQDN for hostname

NoOp glgxg at sbcglobal.net
Fri Nov 5 23:43:39 UTC 2010


On 11/05/2010 04:19 PM, Thufir Hawat wrote:
> On Thu, 04 Nov 2010 23:22:01 -0400, Ric Moore wrote:
> 
> 
>> Can't just edit /etc/hosts?? Always works for me.
>> 
>> wayward4now at iam:~$ more /etc/hosts
>> 127.0.0.1       linux.local     localhost.localdomain   localhost
>> 192.168.0.2     iam.wayward4now.net     iam
> 
> 
> Hmm, doesn't seem to work for me.   After a restart:
> 
> thufir at arrakis:~$ 
> thufir at arrakis:~$ 
> thufir at arrakis:~$ hostname
> arrakis
> thufir at arrakis:~$ 
> thufir at arrakis:~$ nl /etc/hosts
>      1	127.0.0.1	localhost
>      2	127.0.1.1	tleilax.servebeer.com 		tleilax
>      3	#127.0.1.1	arrakis.vs.shawcable.net	arrakis

I'm confused (as usual). What *exactly* are you trying to accomplish?

> 
> 
> Can I just restart the networking service to get the new hostname to take 
> effect?  Does my IP address matter?  Will it break things to take the FQDN 
> from my ISP out of the mix?
> 
> 
> -Thufir
> 
> 






More information about the ubuntu-users mailing list