mirror of https://github.com/c-ares/c-ares.git
ares_getaddrinfo(): do not use search domains if ARES_FLAG_NOSEARCH is set (#638)
c-ares init options defines a flag ARES_FLAG_NOSEARCH that is supposed to prevent search using configured domain suffixes, however when using ares_getaddrinfo() the flag was ignored and domain suffixes were used anyway. Configuring zero domains to search also does not work (if ndomains == 0 default domain search list is loaded regardless of the flag ARES_OPT_DOMAINS being set). This change adds a check for the ARES_FLAG_NOSEARCH in as_is_only() function that is used by ares_getaddrinfo() to decide if to try to query next possible name ( next_dns_lookup() ) Fix By: @petrvhpull/636/head
parent
f4d8c9abbb
commit
f1bf69c2d7
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue