diff options
author | brian <brian@FreeBSD.org> | 1997-09-01 01:19:23 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-09-01 01:19:23 +0000 |
commit | a059b2e7c8fc7680bc0536c45c891db372aa7e32 (patch) | |
tree | d04cc8b3e1e1d95d201ec6bedb292ff524a3c19c /lib/libc/net/res_query.c | |
parent | af20ce1c06566c0e60c95f36bd9cc61626eae1f3 (diff) | |
download | FreeBSD-src-a059b2e7c8fc7680bc0536c45c891db372aa7e32.zip FreeBSD-src-a059b2e7c8fc7680bc0536c45c891db372aa7e32.tar.gz |
Add "options no_tld_query" to resolv.conf.
Mention the capability in resolver(5).
Mention that RES_OPTIONS can be used in resolver(5).
Discussed with: -hackers
Diffstat (limited to 'lib/libc/net/res_query.c')
-rw-r--r-- | lib/libc/net/res_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index 8110895..3716e63 100644 --- a/lib/libc/net/res_query.c +++ b/lib/libc/net/res_query.c @@ -56,7 +56,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; static char orig_rcsid = "From: Id: res_query.c,v 8.10 1997/06/01 20:34:37 vixie Exp"; -static char rcsid[] = "$Id: res_query.c,v 1.13 1997/03/24 06:11:44 imp Exp $"; +static char rcsid[] = "$Id: res_query.c,v 1.14 1997/06/27 08:22:03 peter Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -281,9 +281,9 @@ res_search(name, class, type, answer, anslen) /* if we have not already tried the name "as is", do that now. * note that we do this regardless of how many dots were in the - * name or whether it ends with a dot. + * name or whether it ends with a dot unless NOTLDQUERY is set. */ - if (!tried_as_is) { + if (!tried_as_is && (dots || !(_res.options & RES_NOTLDQUERY))) { ret = res_querydomain(name, NULL, class, type, answer, anslen); if (ret > 0) return (ret); |