svn commit: r340058 - in stable/11: lib/libc/resolv share/man/man5
Bjoern A. Zeeb
bz at FreeBSD.org
Fri Nov 2 15:02:45 UTC 2018
Author: bz
Date: Fri Nov 2 15:02:44 2018
New Revision: 340058
URL: https://svnweb.freebsd.org/changeset/base/340058
Log:
MFC r337904:
Allow the use of TCP instead of UDP for queries by setting options usevc
in resolv.conf which sets RES_USEVC.
Reviewed by: ume
Modified:
stable/11/lib/libc/resolv/res_init.c
stable/11/share/man/man5/resolver.5
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/lib/libc/resolv/res_init.c
==============================================================================
--- stable/11/lib/libc/resolv/res_init.c Fri Nov 2 15:01:59 2018 (r340057)
+++ stable/11/lib/libc/resolv/res_init.c Fri Nov 2 15:02:44 2018 (r340058)
@@ -677,6 +677,8 @@ res_setoptions(res_state statp, const char *options, c
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;
Modified: stable/11/share/man/man5/resolver.5
==============================================================================
--- stable/11/share/man/man5/resolver.5 Fri Nov 2 15:01:59 2018 (r340057)
+++ stable/11/share/man/man5/resolver.5 Fri Nov 2 15:02:44 2018 (r340058)
@@ -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
More information about the svn-src-stable
mailing list