Subject: Domain names are not appended for ".local" hostnames

Domain names are not appended for ".local" hostnames

From: Vinay Kumar <win_i008_at_yahoo.com>
Date: Tue, 23 Dec 2014 16:03:12 +0000 (UTC)

Hi All,
We are using 'ares_gethostbyname()' in our application.
When the hostname is "mycomputer.local", the c-ares does not append the domain name & send to the DNS Server. It just sends "mycomputer.local" to DNS Server.But getaddrinfo() appends Domain name along with "mycomputer.local" and sends the query.
This we have verified on Mac platform.
Is there any way to configure, so that 'ares_gethostbyname()' also appends the Domain name along with hostname "mycomputer.local" while sending the query to DNS Server?
NOTE: Without ".local", 'ares_gethostbyname()' appends the domain name to hostname.
Regards,Vinay
Received on 2014-12-23