mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Backport BIND code to query name as TLD.
This commit is contained in:
@ -545,6 +545,11 @@ res_setoptions(res_state statp, const char *options, const char *source) {
|
||||
} else if (!strncmp(cp, "single-request",
|
||||
sizeof("single-request") - 1)) {
|
||||
statp->options |= RES_SNGLKUP;
|
||||
} else if (!strncmp(cp, "no_tld_query",
|
||||
sizeof("no_tld_query") - 1) ||
|
||||
!strncmp(cp, "no-tld-query",
|
||||
sizeof("no-tld-query") - 1)) {
|
||||
statp->options |= RES_NOTLDQUERY;
|
||||
} else {
|
||||
/* XXX - print a warning here? */
|
||||
}
|
||||
|
Reference in New Issue
Block a user