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


Groups > linux.debian.user > #232048

Re: Got a machine name problem

From IL Ka <kazakevichilya@gmail.com>
Newsgroups linux.debian.user
Subject Re: Got a machine name problem
Date 2021-02-24 19:20 +0100
Message-ID <BM6Vs-195-5@gated-at.bofh.it> (permalink)
References <BLK8x-3Vl-3@gated-at.bofh.it> <BM0mZ-5BF-5@gated-at.bofh.it> <BM2I9-6Tf-3@gated-at.bofh.it> <BM693-z6-3@gated-at.bofh.it> <BM6C6-L8-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

>
>
> Is that what you want?  A local network defined entirely by hosts files?
> You can do that.  It's easy.  Just edit your /etc/hosts files to contain
> the names and addresses of your machines.
>
> In this scenario, your resolv.conf file will be used only to look up
> hosts that live outside of your local network ("in the cloud").  You
> won't CARE what the default DNS domain name is, because you aren't using
> it.  Your local host lookups will be done by matching the strings that
> you put in your hosts files.
>


IMHO: "hosts" files could only be used in the network that uses static IP
addresses.
In this case neither DHCP client nor NetworkManager should be used, so
nothing should touch ``resolve.conf``.
And that means the DNS server could be used.

Sysadmin simply runs DNS server for the "younetwork.name" domain, adds "A"
record for each PC manually, and
then adds "nameserver" and "domain" to the "resolve.conf" on each station.
Latter is required to access "pc1.yournetwork.name" as "pc1".

To rename a machine one can simply change "A" record on DNS and "hostname"
on station.
All changes are persistent, because nothing overwrites resolve.conf

Changing name in two places (station and DNS) is easier than changing it on
all "hosts" files across your network.

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