Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #232003

Re: Got a machine name problem

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Got a machine name problem
Date 2021-02-24 02:40 +0100
Message-ID <BLRjH-8oK-1@gated-at.bofh.it> (permalink)
References <BLK8x-3Vl-3@gated-at.bofh.it> <BLLxD-4YR-3@gated-at.bofh.it> <BLQQF-8fP-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 23 Feb 2021 at 20:05:11 (-0500), Gene Heskett wrote:
> On Tuesday 23 February 2021 14:29:01 Tom Browder wrote:
> > On Tue, Feb 23, 2021 at 11:59 AM Gene Heskett wrote: ...
> >
> > > Nothing I do survives a reboot, so what do I do to actually rename
> > > the machine and make it stick? Hopefully without losiing the
> > > networking
> >
> > Hey, Gene.  I usually have to fiddle around a little, but I've always
> > had success on Debian this way (as root):
> >
> >     # hostname TLM
> >
> >    edit /etc/hostname and set the desired name to TLM if it's not
> > already changed
> >
> > I also edit /etc/hosts and make the first couple of lines look like
> > this:
> >
> >     127.0.0.1 localhost.localdomain.com   localhost
> >     127.0.1.1 TLM.geneslinuxbox.net        TLM
> 
> The first line is std here.
> 
> Why should it have the 2nd one?

If some software wants to know the IP address of TLM before the
network is up, there's no point in handing it 192.168.M.N,
so you use a loopback address to itself.

However, putting TLM on the first line can apparently make
localhost.localdomain into the canonical name of the system,
which is probably not what you want.

BTW I don't know where your .com came from in the first line.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-23 19:00 +0100
  Re: Got a machine name problem Dan Ritter <dsr@randomstring.org> - 2021-02-23 19:10 +0100
  Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-23 20:30 +0100
    Re: Got a machine name problem "James B" <portoteacher80@fastmail.com> - 2021-02-24 01:30 +0100
      Re: Got a machine name problem "James B" <portoteacher80@fastmail.com> - 2021-02-24 01:30 +0100
      Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 02:30 +0100
        Re: Got a machine name problem <tomas@tuxteam.de> - 2021-02-24 09:40 +0100
          Re: Got a machine name problem <tomas@tuxteam.de> - 2021-02-24 12:20 +0100
            Re: Got a machine name problem Stefan Monnier <monnier@iro.umontreal.ca> - 2021-02-24 16:20 +0100
          Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 12:20 +0100
            Re: Got a machine name problem Greg Wooledge <greg@wooledge.org> - 2021-02-24 14:50 +0100
              Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-24 15:00 +0100
                Re: Got a machine name problem Greg Wooledge <greg@wooledge.org> - 2021-02-24 15:20 +0100
                Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-24 15:30 +0100
              Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 18:30 +0100
                Re: Got a machine name problem Greg Wooledge <greg@wooledge.org> - 2021-02-24 19:00 +0100
                Re: Got a machine name problem IL Ka <kazakevichilya@gmail.com> - 2021-02-24 19:20 +0100
                Re: Got a machine name problem Celejar <celejar@gmail.com> - 2021-02-24 19:00 +0100
    Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 02:10 +0100
      Re: Got a machine name problem David Wright <deblis@lionunicorn.co.uk> - 2021-02-24 02:40 +0100
        Re: Got a machine name problem Tom Browder <tom.browder@gmail.com> - 2021-02-24 03:30 +0100
        Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 04:30 +0100
      Re: Got a machine name problem Stefan Monnier <monnier@iro.umontreal.ca> - 2021-02-24 06:00 +0100
        Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 06:10 +0100
          OT: Spicy stuff in sensitive areas (was Re: Got a machine name problem) The Wanderer <wanderer@fastmail.fm> - 2021-02-24 12:20 +0100
      Re: Got a machine name problem Brian <ad44@cityscape.co.uk> - 2021-02-24 15:20 +0100
        Re: Got a machine name problem Brian <ad44@cityscape.co.uk> - 2021-02-24 21:20 +0100
  Re: Got a machine name problem David Christensen <dpchrist@holgerdanske.com> - 2021-02-24 03:00 +0100
    Re: Got a machine name problem David Wright <deblis@lionunicorn.co.uk> - 2021-02-24 06:00 +0100
  Re: Got a machine name problem "Andrew M.A. Cater" <amacater@einval.com> - 2021-02-24 12:20 +0100
    Re: Got a machine name problem Gene Heskett <gheskett@shentel.net> - 2021-02-24 12:30 +0100

csiph-web