mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Use jinja2 templates in tsiggss
- The ns1/named.conf.j2 contains "@" which is a special jinja character,
use the raw directive to escape it.
(cherry picked from commit 1aa2f7249a)
This commit is contained in:
parent
38c779740f
commit
425af8d0b1
2 changed files with 2 additions and 2 deletions
|
|
@ -39,11 +39,13 @@ zone "example.nil." IN {
|
|||
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;
|
||||
|
|
@ -13,7 +13,5 @@
|
|||
|
||||
. ../conf.sh
|
||||
|
||||
copy_setports ns1/named.conf.in ns1/named.conf
|
||||
|
||||
key=$($KEYGEN -Cq -K ns1 -a $DEFAULT_ALGORITHM -b $DEFAULT_BITS -n HOST -T KEY key.example.nil.)
|
||||
cat ns1/example.nil.db.in ns1/${key}.key >ns1/example.nil.db
|
||||
|
|
|
|||
Loading…
Reference in a new issue