I have a home network set up using mDNS, containing assorted systems (including an always-on Raspberry Pi). My machines are running avahi daemons, so the current situation is:
- everybody on the network can resolve
host.localnames.
What I want in addition:
- the machines that I administrate can also resolve
hostto the same address ashost.local.
I could think of three ways to do that:
Put
search localin/etc/resolv.conf: this is not honored by mDNS as it was supposedly “causing problems”. I could recompile with the--enable-search-domainsoptions on all my machines.Write static
/etc/hostsfiles in all network machines. This is what I currently do. However, it makes configuration distributed, which I want to avoid (these files do eventually go out-of-sync).Set up a DNS server on the network. However, the router provided with the Internet access does not do DNS (this is almost a good reason to change for another company), so I would need to set it up on the Raspberry. This also poses the problem of a distributed configuration: the static DNS info on the Raspberry would eventually go out of sync with the mDNS information, so that
hostandhost.localcould confusingly point to two different IP addresses...
So, my question is:
what are the “problems” posed by the
--enable-search-domainsoption? (The only one I see is that it enables anyone on the LAN to set up an unqualified host name, but 1. I don't use unqualified host names apart from those I already control, and 2. LAN access is already restricted to trusted peers anyway).did I miss any other fourth option? (such as, setup a DNS server + a crontab periodically feeding it with some output of an
avahi-browsecommand?)