On Tue, 28 Sep 2021 19:17:57 +0100, Chris Green wrote:
> But this doesn't give you names for the systems on your LAN does it?
>
Yes it does: the name is linked with the IP when you add the new system
to the zone file: the resolved.conf file directs name searches to your DNS
first, so the enquirer gets handed the correct IP by your local DNS: if
the query fails its a fair assumption that the name doesn't belong to one
of your local machines, and the systemd resolver then asks the external
DNSs listed in your resolved.conf file.
I assume that you'll you've given each new system it's name when you
first configured it, but I don't think that affects much apart from
allowing the system to realise that the connection request can be
satisfied without bothering any DNS.
> I want to be able to ssh freely from desktop (name esprimo) to laptop
> (name t470) to Pi (dns) to another Pi (backup) to my wife's laptop
> (x201), etc. Running dnsmasq as DHCP/DNS server provides me with this
> ability easily.
>
That's exactly what I do: any machine on my LAN can connect to any other
machine on it because my local DNS resolves all names with of the form
localsystemname.localdomain.lan - localdomain.lan being the zone it is
configured to resolve names in.
Initially, setting up named needed a little head scratching, but I found
"DNS and BIND" (O'Reilly) useful, but it doesn't cover the unbound
resolver, so other books may relevant too. It may be worth noting that,
apart from adding and deleting machines as my LAN system population
changes, my named configuration hasn't needed to change for many years.