From: Mark Andrews Date: Fri, 8 Jun 2018 06:59:55 +0000 (+1000) Subject: add answer-cookie as a obsolete option X-Git-Tag: v9.13.1~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e1022302943e3ce7b535bc517396fd5f435d897;p=thirdparty%2Fbind9.git add answer-cookie as a obsolete option --- diff --git a/CHANGES b/CHANGES index 547bed9c5a5..c6ee9d6fa50 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +4967. [cleanup] Add "answer-cookie" to the parser, marked obsolete. + +4966. [placeholder] + 4965. [func] Add support for marking options as deprecated. [GL #322] diff --git a/bin/named/config.c b/bin/named/config.c index 1689211039b..eb78c2cddce 100644 --- a/bin/named/config.c +++ b/bin/named/config.c @@ -47,6 +47,7 @@ /*% default configuration */ static char defaultconf[] = "\ options {\n\ +# answer-cookie ;\n\ automatic-interface-scan yes;\n\ bindkeys-file \"" NAMED_SYSCONFDIR "/bind.keys\";\n\ # blackhole {none;};\n" diff --git a/doc/arm/Bv9ARM-book.xml b/doc/arm/Bv9ARM-book.xml index 4f428a45e10..8f2bfca31b1 100644 --- a/doc/arm/Bv9ARM-book.xml +++ b/doc/arm/Bv9ARM-book.xml @@ -5776,7 +5776,7 @@ options { fetch-glue - This option is obsolete. + This option is obsolete. In BIND 8, fetch-glue yes caused the server to attempt to fetch glue resource records it @@ -6080,6 +6080,18 @@ options { + + answer-cookie + + + This option is obsolete. + This option was used to prevent the sending of + a DNS COOKIE option in response to a request with + one present in BIND 9.11 and BIND 9.12. + + + + send-cookie diff --git a/lib/isccfg/namedconf.c b/lib/isccfg/namedconf.c index c9cd59bd8d8..d69051ca1e0 100644 --- a/lib/isccfg/namedconf.c +++ b/lib/isccfg/namedconf.c @@ -1030,6 +1030,7 @@ static cfg_type_t cfg_type_fstrm_model = { */ static cfg_clausedef_t options_clauses[] = { + { "answer-cookie", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE }, { "automatic-interface-scan", &cfg_type_boolean, 0 }, { "avoid-v4-udp-ports", &cfg_type_bracketed_portlist, 0 }, { "avoid-v6-udp-ports", &cfg_type_bracketed_portlist, 0 },