On Mon 31 Mar 2025 at 16:35:58 (-0400), gene heskett wrote: > On 3/31/25 13:55, David Wright wrote: > > I don't know why you have problems with using /etc/hosts for lookups > > on your LAN. I use it here without any problems, and it has to work > > because there's no DNS server in my router (too cheap). > > > > $ grep hosts: /etc/nsswitch.conf > > hosts: files mdns4_minimal [NOTFOUND=return] dns > because files doesn't work in bookworm, I had to: > > grep hosts: /etc/nsswitch.conf > hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname > to make the hosts file work
I don't know why you're using libnss-myhostname, nor whether it's something to do with your unconventional (for Debian) /etc/hosts that you listed in: https://lists.debian.org/debian-user/2023/08/msg00061.html > > > Sorry to disappoint you but that seems to be working Just Fine, but > > > once again, you make no attempt to either explain why its wrong, or to > > > tell us what the right way is other than demanding we waste a week > > > making dhcpd actually work. > > Then why the complaint? The query still stands. Cheers, David.