From 0e1022302943e3ce7b535bc517396fd5f435d897 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 8 Jun 2018 16:59:55 +1000 Subject: [PATCH] add answer-cookie as a obsolete option --- CHANGES | 4 ++++ bin/named/config.c | 1 + doc/arm/Bv9ARM-book.xml | 14 +++++++++++++- lib/isccfg/namedconf.c | 1 + 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 547bed9c5a..c6ee9d6fa5 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 1689211039..eb78c2cddc 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 4f428a45e1..8f2bfca31b 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 c9cd59bd8d..d69051ca1e 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 },