mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
AUTODNSSEC -> AUTODNSSEC_ON (#863)
* AUTODNSSEC -> AUTODNSSEC_ON * Validate AutoDNSSEC values * AUTODNSSEC now generates a warning and does nothing.
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
// If you edit this file, you must run `go generate` to embed this
|
||||
// file in the source code.
|
||||
|
||||
// If you are heavily debugging this code, the "-dev" flag will
|
||||
// read this file directly instead of using the output of
|
||||
// `go generate`. You'll still need to run `go generate` before
|
||||
@ -535,9 +536,21 @@ function NO_PURGE(d) {
|
||||
d.KeepUnknown = true;
|
||||
}
|
||||
|
||||
// AUTODNSSEC()
|
||||
// AUTODNSSEC
|
||||
// Permitted values are:
|
||||
// "" Do not modify the setting (the default)
|
||||
// "on" Enable AUTODNSSEC for this domain
|
||||
// "off" Disable AUTODNSSEC for this domain
|
||||
function AUTODNSSEC_ON(d) {
|
||||
d.auto_dnssec = "on";
|
||||
}
|
||||
function AUTODNSSEC_OFF(d) {
|
||||
d.auto_dnssec = "off";
|
||||
}
|
||||
function AUTODNSSEC(d) {
|
||||
d.auto_dnssec = true;
|
||||
console.log(
|
||||
"WARNING: AUTODNSSEC is deprecated. It is now a no-op. Please use AUTODNSSEC_ON or AUTODNSSEC_OFF. The default is to make no modifications. This message will disappear in a future release."
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user