The logfileconfig configs used to define an unquoted hyphenated
`key rndc-key` referenced as `keys { "rndc-key"; }`, incidentally
covering quoted/unquoted key-name interchangeability. Now that those
configs use the shared controls include, keep that parser coverage in
a checkconf test.
Assisted-by: Claude:claude-fable-5
--- /dev/null
+/*
+ * Key names may be quoted or unquoted, in both definitions and
+ * references, and a hyphenated name works in either form.
+ */
+key rndc-key {
+ algorithm hmac-sha256;
+ secret "1234abcd8765";
+};
+
+key "rndc_key" {
+ algorithm hmac-sha256;
+ secret "1234abcd8765";
+};
+
+controls {
+ inet 127.0.0.1 port 953 allow { any; } keys { "rndc-key"; rndc_key; };
+};