set FQDN for hostname
Ric Moore
wayward4now at gmail.com
Sat Nov 6 01:40:36 UTC 2010
On Fri, 2010-11-05 at 23:52 +0000, Luis Paulo wrote:
> 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
hostname -f does it as well. Ric
--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256
More information about the ubuntu-users
mailing list