dns.c: Load IPv6 DNS resolvers if configured.

IPv6 nameserver addresses are stored in different part of the
__res_state structure, so look there if we appear to have support for
it.

ASTERISK-28004 #close

Change-Id: I67067077d8a406ee996664518d9c8fbf11f6977d
This commit is contained in:
Sean Bright
2021-09-06 12:37:08 -04:00
committed by Kevin Harwell
parent 976521c9a2
commit 695fc3dbd7
4 changed files with 32 additions and 2 deletions

View File

@@ -1459,7 +1459,8 @@ AC_LINK_IFELSE(
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_RES_CLOSE], 1, [Define to 1 if your system has the close resolver function.]),
AC_MSG_RESULT(no)
),
)
AC_CHECK_MEMBERS([struct __res_state._u._ext.nsaddrs], [], [], [[#include <resolv.h>]]),
AC_MSG_RESULT(no)
)