On Sat, Jan 15, 2022 at 2:35 PM Raphael Mejias Dias <raph...@gmail.com> wrote: >> >> You might want to look into whether it solves your problems >> out-of-the-box without the need to run internal DNS. The latter still >> has certain advantages, but mDNS obviously benefits from simplicity. >> >> > This solution, change hosts file, that Avahi suggests, is the easy solution > without DNS local server? > > I never realized about the host file
Are you talking about the nsswitch.conf file? If so, then yes. If you run the avahi daemon and configure nsswitch.conf so that the resolver includes it, then any host on the network that supports zeroconf should be accessible via hostname.local. Most stuff does these days. Obviously there is more you can do with full-blown DNS/DHCP, but if all you care about is that your printer shows up at printer.local or whatever, and so on, then you're fine. Likewise your gentoo box would be available to anything else on the network via its hostname.local. Oh, and if you want to prefer IPv4 then use mdns4_minimal and mdns4 in the config. -- Rich