- The ns1/named.conf.j2 contains "@" which is a special jinja character,
use the raw directive to escape it.
type primary;
file "example.nil.db";
+{% raw %}
update-policy {
grant Administrator@EXAMPLE.NIL wildcard * A AAAA SRV CNAME;
grant testdenied@EXAMPLE.NIL wildcard * TXT;
grant "local:auth.sock" external * CNAME;
};
+{% endraw %}
/* we need to use check-names ignore so _msdcs A records can be created */
check-names ignore;
. ../conf.sh
-copy_setports ns1/named.conf.in ns1/named.conf
-
key=$($KEYGEN -Cq -K ns1 -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -T KEY key.example.nil.)
cat ns1/example.nil.db.in ns1/${key}.key >ns1/example.nil.db