I am surprised nobody mentioned router driven DHCP and enabling mDNS on all
PCs.

With that - computerName.local just works on LAN, no other config needed.

-Tomas

On Wed, Nov 18, 2026, 13:11 Ben Koenig via PLUG <[email protected]>
wrote:

>
> I definitely agree that leveraging DHCP and consolidating DNS on a single
> device would significantly simplify a lot of this. At the same time, I
> have to acknowledge that Rich's systems are part of an active business.
> This means that there are other tasks demanding his attention and the
> availability of non-production equipment for testing is limited.
>
> FWIW using rc.inet1 with static addresses and manual setup of /etc/hosts
> and resolv.conf seems antiquated at first. But when compared to what other
> companies are doing is relatively next-gen.
>
>
> I recently set up 3 new Slackware boxen for business use without
> NetworkManager. Network interfaces are configured using rc.inet1 (like
> Rich)
> but in DHCP mode. This means each machine sets a primary DNS address from
> my OpenWRT router on the *.example.lan domain. /etc/resolv.conf is
> automatically generated so I don't have a point of failure there.
> /etc/hosts
> is generated on OS installation and doesn't need to be added to.
>
> None of my machines are using reserved addresses. All applications use the
> local domain names so if a machine happens to lease a different IP OpenWRT
> just handles it. Cert-based SSH logins also work, I have a script that can
> generate a signed cert for a new host which then allows remote logins with
> extremely minimal changes to other systems.
>
> The upside of doing it this way is that the one device (laptop) that uses
> NM doesn't need any specific setup but can still ping any other device
> on the network. Configuration is centralized in a way that allows me to
> bring a new host online without having to manually tell the existing 3
> hosts
> that they have a new friend.
>
>
> If I were going to configure my network the way Rich does, I would
> probably
> use something like Ansible to keep track of each host's config files. But
> that would feel excessive given that DHCP exists.
> -Ben
>
> On Tuesday, November 17th, 2026 at 11:52 PM, Kevin T. Neely via PLUG <
> [email protected]> wrote:
>
> > Agreed.  It's been a while, but I moved over to managing the local
> network
> > first with the capabilities of the router I was using, and then on to a
> > dedicated Pi B+ running bind9, which is amazingly still going strong.
> Plus
> > DHCP reservations on whichever host made sense, depending upon the
> current
> > networkng components.  It will be a pain, Rich, but I think in the long
> run
> > it will be worth taking a step back and re-working the infrastructure.
> > These technologies were built to address the specific problems you're
> > running up against.  Moving to them will pay dividends, I promise.
> >
> > Kevin
> >
> > On Tue, Nov 17, 2026 at 9:13 PM <[email protected]> wrote:
> >
> > > This is the way.
> > >
> > > Privacy randomization is a thing for IPv6 but they don't do it by
> mucking
> > > around with the MAC addresses, fortunately.
> > >
> > > Because privacy randomization was never a part of the IPv4 standard,
> > > mucking around with the MAC addresses is the only way to do it.
> > >
> > > IMHO privacy randomization is utter baloney.
> > >
> > > Note that if you run your own private DNS server on your LAN at home
> you
> > > can configure your DHCP clients to register their hostnames into the
> DNS
> > > server.  This is of course more valuable for large networks but it's
> kind
> > > of nice to have logs on your stuff with the actual private hostname
> instead
> > > of just random IP addresses
> > >
> > > Ted
> > >
> > > -----Original Message-----
> > > From: PLUG <[email protected]> On Behalf Of Russell
> Senior
> > > Sent: Tuesday, November 17, 2026 2:31 PM
> > > To: Portland Linux/Unix Group <[email protected]>
> > > Subject: Re: [PLUG] ssh shuts down on laptop
> > >
> > > You should configure your gateway router's DHCP server to always give
> your
> > > laptop the same IP address with DHCP, sometimes called lease
> reservation.
> > > That way, the laptop works when you take it somewhere else, but always
> > > gets the same IP address when you are home. The lease reservations are
> a
> > > happy middle ground where the devices are dynamically configured and
> adapt
> > > to their surroundings, but also have a reliably consistent address at
> home
> > > so other devices can find them. Clever DHCP servers will do DNS
> resolution
> > > of hostnames as well. Your /etc/hosts entries override DNS and so if
> they
> > > get misaligned you can expect problems too. Better to rely on DNS than
> > > brittle /etc/hosts entries.
> > >
> > > One caveat: Some modern setups do a mac address randomization for
> privacy
> > > reasons. That is for each SSID, it will pick and record a randomized
> mac
> > > address to use, so your device can't be so easily tracked across town.
> This
> > > can sometimes mess with the lease reservations, since they are based
> on the
> > > mac address. This is mostly a thing on phones, but might also appear on
> > > laptops, not sure.
> > >
> > > On Tue, Nov 17, 2026, 12:26 Rich Shepard <[email protected]>
> wrote:
> > >
> > > > On Tue, 17 Nov 2026, Rich Shepard wrote:
> > > >
> > > > > Well, /etc/rc.d/rc.inet1.conf still has eth0 set to the laptop's IP
> > > > address
> > > > > and both /etc/ssh/sshd_config and ~/.ssh/ssh_config have the
> correct
> > > > > port number.
> > > >
> > > > And, I stopped and restarted sshd before rebooting. It didn't fix the
> > > > problem.
> > > >
> > > > Rich
> > > >
> > >
> > >
> >
> > --
> > In Vino Veritas
> >
>

Reply via email to