[avahi] Enumerate domain on "search" domain from resolv.conf

Trent Lloyd lathiat at bur.st
Sun Nov 30 20:47:37 PST 2014

Hi Petit,

Avahi does not search the list in /etc/resolv.conf, however you can configure additional search domains in the avahi-daemon.conf:

browse-domains= Set a comma seperated list of browsing domains (in addition to the default one and those announced inside the default browsing domain). Please note that the user may specify additional browsing domains on the client side, either by setting $AVAHI_BROWSE_DOMAINS to a list of colon seperated domains or by adding them to the XDG config file ~/.config/avahi/browse-domains (seperated by newlines).


> On 31 Oct 2014, at 2:41 am, Petit.Theoris Thomas <t.petit.theoris at neopost.com> wrote:
> Hi,
> When I browse for browsing domain(AVAHI_DOMAIN_BROWSER_BROWSE) avahi keep only browsing on “local” domain and never try to browse on domain in my resolv.conf. Is there a way to make avahi automatically pick up search domain as defined in resolv.conf ?
> ------------
> avahi-daemon.conf is default configuration.
> My linux is configured to have dynamic IP and I got the correct DNS server and domain name in  /etc/resolv.conf
> nameserver 10.38.xx.xx
> search my.domain.com <http://my.domain.com/>
> Also I have the correct b._dns-sd._udp and lb._dns-sd._udp entries in my DNS record.
> But when I try avahi-browse-domains (no parameter), avahi  keep only querying the “local” domain :
> DNS Standard query 0x4a3e PTR b._dns-sd._udp.local
> I would expect  to try every “search” domain in resolv.conf and then try local.
> For example, I tried bonjour on windows and it pick up the domain automatically :
> DNS Standard query 0x4a3e PTR b._dns-sd._udp.my.domain.com <http://udp.my.domain.com/>
> The end goal is to have an infrastructure with complete zero-configuration for client side.
> DHCP give DNS and domain, then client enumerate domain and then browse for service.
> Regards,
> Thomas Petit
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org <mailto:avahi at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/avahi <http://lists.freedesktop.org/mailman/listinfo/avahi>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/avahi/attachments/20141201/2bede844/attachment.html>

More information about the avahi mailing list