via getaddrinfo() (affects dig, host, nslookup, rndc
and nsupdate).
+1219. [bug] Set AI_ADDRCONFIG when looking up addresses
+ via getaddrinfo() (affects dig, host, nslookup, rndc
+ and nsupdate).
+
1218. [bug] The CINCLUDES macro in lib/dns/sec/dst/Makefile
could be left with a trailing "\" after configure
has been run.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: getaddresses.c,v 1.9 2001/11/16 06:48:22 bwelling Exp $ */
+/* $Id: getaddresses.c,v 1.10 2002/06/06 00:27:37 marka Exp $ */
#include <config.h>
#include <string.h>
hints.ai_family = PF_INET;
else if (!have_ipv4)
hints.ai_family = PF_INET6;
- else
+ else {
hints.ai_family = PF_UNSPEC;
+ hints.ai_flags = AI_ADDRCONFIG;
+ }
hints.ai_socktype = SOCK_STREAM;
result = getaddrinfo(hostname, NULL, &hints, &ai);
switch (result) {