about summary refs log tree commit diff
path: root/resolv/res_init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-05-07 13:05:19 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-07 13:05:19 -0400
commitf87dfb1f11c01f2ccdc40d81e134cd06b32e28e8 (patch)
treea3576051b3e8e833c4035478d4f1ac1f946f3f29 /resolv/res_init.c
parent47c3cd7a74e8c089d60d603afce6d9cf661178d6 (diff)
downloadglibc-f87dfb1f11c01f2ccdc40d81e134cd06b32e28e8.tar.gz
glibc-f87dfb1f11c01f2ccdc40d81e134cd06b32e28e8.tar.xz
glibc-f87dfb1f11c01f2ccdc40d81e134cd06b32e28e8.zip
Backport BIND code to query name as TLD.
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r--resolv/res_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c
index 74715f34e9..7588432b22 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -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? */
 		}