nsd: Initial version of role (WIP)
This commit is contained in:
parent
c1c74dc5c4
commit
69c17d7e12
3 changed files with 82 additions and 0 deletions
28
roles/nsd/templates/nsd.conf.j2
Normal file
28
roles/nsd/templates/nsd.conf.j2
Normal file
|
@ -0,0 +1,28 @@
|
|||
|
||||
server:
|
||||
chroot: "/var/nsd"
|
||||
database: ""
|
||||
hide-version: yes
|
||||
logfile: "/var/log/nsd.log"
|
||||
server-count: {{ ansible_processor_count }}
|
||||
verbosity: 2
|
||||
|
||||
interface: ::0@53
|
||||
interface: 0.0.0.0@53
|
||||
interface: ::0@853
|
||||
interface: 0.0.0.0@853
|
||||
|
||||
tls-service-key: {{ tls_private }}/{{ nsd_server }}.key
|
||||
tls-service-pem: {{ tls_certs }}/{{ nsd_server }}.crt
|
||||
|
||||
remote-control:
|
||||
control-enable: yes
|
||||
control-interface: "/var/nsd/run/control.sock"
|
||||
{% for zone in nsd_zones %}
|
||||
|
||||
zone:
|
||||
name: "{{ zone }}"
|
||||
zonefile: "/zones/master/{{ zone|replace('/', '-') }}"
|
||||
notify: 144.202.29.243 NOKEY
|
||||
provide-xfr: 144.202.29.243 NOKEY
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue