diff options
author | ume <ume@FreeBSD.org> | 2001-12-26 21:21:10 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-12-26 21:21:10 +0000 |
commit | 32d91b30d9111333596a67421839d385fac08eb7 (patch) | |
tree | 6cd2500cc174e15ae8f8e8c45a5b5f7b863200bf /lib/libc/net/res_init.c | |
parent | eb6c6922fca06dfd53e72a1c466f4d42fe6cb3a6 (diff) | |
download | FreeBSD-src-32d91b30d9111333596a67421839d385fac08eb7.zip FreeBSD-src-32d91b30d9111333596a67421839d385fac08eb7.tar.gz |
- Make it possible to turn on RES_INSECURE[12] with /etc/resolv.conf.
- Don't connect datagram socket if RES_INSECURE1.
- Needed to implement IPv6 anycast UDP DNS queries as documented in
<draft-ietf-ipngwg-dns-discovery-03.txt>.
Obtained from: KAME
Diffstat (limited to 'lib/libc/net/res_init.c')
-rw-r--r-- | lib/libc/net/res_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/net/res_init.c b/lib/libc/net/res_init.c index 2d25677..ce74928 100644 --- a/lib/libc/net/res_init.c +++ b/lib/libc/net/res_init.c @@ -533,6 +533,10 @@ res_setoptions(options, source) #endif } else if (!strncmp(cp, "inet6", sizeof("inet6") - 1)) { _res.options |= RES_USE_INET6; + } else if (!strncmp(cp, "insecure1", sizeof("insecure1") - 1)) { + _res.options |= RES_INSECURE1; + } else if (!strncmp(cp, "insecure2", sizeof("insecure2") - 1)) { + _res.options |= RES_INSECURE2; } else if (!strncmp(cp, "no_tld_query", sizeof("no_tld_query") - 1)) { _res.options |= RES_NOTLDQUERY; } else if (!strncmp(cp, "edns0", sizeof("edns0") - 1)) { |