On Tuesday, January 25, 2022 7:35:54 PM EST David Wright wrote: > On Tue 25 Jan 2022 at 09:31:57 (+0100), Andrei POPESCU wrote: > > On Lu, 24 ian 22, 23:54:41, Brian wrote: > > > Resolving hostnames on the local network is simple and reliable > > > when > > > avahi-daemon and linnss-mdns are available. > > > > > > brian@desktop:~$ getent hosts envy4500.local > > > 192.168.7.235 envy4500.local > > > > > > Continually and nanually maintain /etc/hosts? Not in 2022! > > More like biannually :-) > > It's just pointless here, on such a static network. If I'm going to > login to the router to add a MAC, then editing and distributing my > master list is trivial. Last change: 2021-02-04, when I got hold of > a redundant computer. > > > Ok, I'll bite :) > > > > Could you point to any (reasonably up-to-date) documentation or is it > > sufficient to just install avahi-daemon and libnss-mdns? > > I looked at the Debian wiki: ouch. It seems to have been spammed > a while back, and hasn't been touched in 4½ years. Although the > Arch wiki is far better, I'm not able to judge how much one might > be led astray by the differences between Arch and Debian. > > I can't speak to Gene's wanting a static network configured by his > method, but I'm happy to defend my choice. > > Cheers, > David. > It works fine with no complaints.
Here is the bottom of /etc/dhcpcd.conf: # Example static IP configuration: #interface eth0 #static ip_address=192.168.0.10/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 #static routers=192.168.0.1 #static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1 # It is possible to fall back to a static IP if DHCP fails: # define static profile profile static_eth0 static ip_address=192.168.71.13/24 static routers=192.168.71.1 static domain_name_servers=192.168.71.1 # fallback to static profile on eth0 interface eth0 fallback static_eth0 So if dhcpd fails, it uses the above, and it Just Works. And I've not found any reference to it in the man page. So I've no clue why it seems to be such a huge, no one knows about it secret. Cheers David, and stay well, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>