Subject: Re: 'c-ares' support mDNS queries?

Re: 'c-ares' support mDNS queries?

From: Jakub Hrozek <jhrozek_at_redhat.com>
Date: Thu, 11 Dec 2014 14:04:21 +0100

On Thu, Dec 11, 2014 at 12:31:54PM +0000, Vinay Kumar wrote:
> Hi All,
> Does 'c-ares' support mDNS queries?I used 'ares_gethostbyname' to resolve a host name to IP addresses within small networks that do not include a local name server.
> 'ares_gethostbyname' fails, but 'getaddrinfo' succeeds. 
> After analyzing the ethereal capture, we observed that 'getaddrinfo' succeded because it sent mDNS requests.Is there any way to configure 'ares_gethostbyname' to initiate the mDNS requests?
> Regards,Vinay 

The principal difference is that c-ares talks directly to the nameserver
or reads the hosts file, but getaddrinfo() et al load the NSS modules.

So no, c-ares doesn't support anything except hosts files and DNS.
Received on 2014-12-11