set FQDN for hostname

Luis Paulo luis.barbas at gmail.com
Fri Nov 5 23:52:22 UTC 2010


On Fri, Nov 5, 2010 at 23:43, NoOp <glgxg at sbcglobal.net> wrote:
> 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>>
>>
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

>> effect?  Does my IP address matter?  Will it break things to take the FQDN
>> from my ISP out of the mix?
>>
>>
>> -Thufir

hostname will only return the... hostname :)
use
$ hostname --all-fqdns

Hope that helps
Luis




More information about the ubuntu-users mailing list