[Feature Request] /etc/avahi/hosts ability to specify interface-specific publish
On my project, I need to publish a host name on a specific interface, and not have that publish go out any of the other interfaces. I've been doing this by using the avahi_entry_group_add_record() api from a separate process, but I found it would be much easier to support it directly from the /etc/avahi/hosts file.
I'm currently working on a patch to avahi for this, but want to get the feature request submitted to see if it would be accepted. The direction I'm going at the moment is to add a 3rd optional token to the entries, like this: 192.168.1.1 myhost.local eth0
If the interface isn't specified, default is AVAHI_IF_UNSPEC, to maintain equivalency with how things are currently, and to prevent any impact to existing avahi configs.
Thanks Evgeny for pointing me this FR! This is exactly what I like to have too! When I was playing around in my home network, I want to have different interface-specific mDNS names, i.e. using a reliable wired network for SSH with DHCP assigned IP.