summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2018-11-02 15:02:44 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2018-11-02 15:02:44 +0000
commita35bbfd2a88f919fe60e6207548fd547bb547aa1 (patch)
tree5c0037ac73d8e65e6e4c8d9438e7333d9e9359a9
parent64c5c0dc78bd72f61a051def935403d0d23123ce (diff)
Notes
-rw-r--r--lib/libc/resolv/res_init.c2
-rw-r--r--share/man/man5/resolver.56
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c
index 732fb1e6646ed..6a34113751dc4 100644
--- a/lib/libc/resolv/res_init.c
+++ b/lib/libc/resolv/res_init.c
@@ -677,6 +677,8 @@ res_setoptions(res_state statp, const char *options, const char *source)
statp->options |= RES_INSECURE2;
} else if (!strncmp(cp, "rotate", sizeof("rotate") - 1)) {
statp->options |= RES_ROTATE;
+ } else if (!strncmp(cp, "usevc", sizeof("usevc") - 1)) {
+ statp->options |= RES_USEVC;
} else if (!strncmp(cp, "no-check-names",
sizeof("no-check-names") - 1)) {
statp->options |= RES_NOCHECKNAME;
diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5
index 8306309b831e8..cc439f123442a 100644
--- a/share/man/man5/resolver.5
+++ b/share/man/man5/resolver.5
@@ -28,7 +28,7 @@
.\" @(#)resolver.5 8.1 (Berkeley) 6/5/93
.\" $FreeBSD$
.\"
-.Dd October 12, 2015
+.Dd August 16, 2018
.Dt RESOLVER 5
.Os
.Sh NAME
@@ -127,6 +127,10 @@ is one of the following:
sets
.Dv RES_DEBUG
in _res.options.
+.It Sy usevc
+sets
+.Dv RES_USEVC
+to use TCP instead of UDP for queries.
.It Sy ndots: Ns Ar n
sets a threshold for the number of dots which must appear in a name given to
.Fn res_query