summaryrefslogtreecommitdiff
path: root/libc/resolv/res_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/resolv/res_init.c')
-rw-r--r--libc/resolv/res_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/resolv/res_init.c b/libc/resolv/res_init.c
index 2bf830cc9..8841fe9fa 100644
--- a/libc/resolv/res_init.c
+++ b/libc/resolv/res_init.c
@@ -540,6 +540,9 @@ res_setoptions(res_state statp, const char *options, const char *source) {
statp->options |= RES_NOCHECKNAME;
} else if (!strncmp(cp, "edns0", sizeof("edns0") - 1)) {
statp->options |= RES_USE_EDNS0;
+ } else if (!strncmp(cp, "single-request",
+ sizeof("single-request") - 1)) {
+ statp->options |= RES_SNGLKUP;
} else {
/* XXX - print a warning here? */
}