[PATCH] Make link-local addresses resolvable via running avahi-daemon.

Laurent Bercot ska-dietlibc at skarnet.org
Thu Nov 24 11:29:44 UTC 2011


> nss-mdns is an extension to glibc to support resolution of link-local
> (.local) addresses via GNU Name Service Switch (NSS) which redirects
> the queries to a running avahi-daemon, which in turn does the resolution
> via multicast DNS (mdns).
> 
> However, this does not work for uClibc, as it does not support NSS.
> 
> This patch integrates the nss-mdns approach into uClibc's resolver,
> so getaddrinfo() and getnameinfo() calls get redirected to a running
> avahi-daemon before trying to resolve via unicast DNS.

 Rule of Separation: Separate policy from mechanism; separate interfaces
from engines.  (http://www.faqs.org/docs/artu/ch01s06.html)

 If uClibc is going to support mDNS, at least please support it in a
uClibcesque way. Do not copy the glibc mechanism, and do not assume users
are going to run avahi-daemon, because they might very well be running
other mDNS software with a totally different mechanism.

 Some of us are using uClibc *specifically* to get away from retarded
glibc mechanisms. :)

-- 
 Laurent


More information about the uClibc mailing list