-
Notifications
You must be signed in to change notification settings - Fork 8
Dns backend #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Dns backend #25
Changes from all commits
e8050b4
36e88e4
be74de7
fe7db3c
2931640
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,3 +14,8 @@ | |
| service: | ||
| name: network | ||
| state: restarted | ||
|
|
||
| - name: restart bind | ||
| service: | ||
| name: bind | ||
| state: restarted | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| - name: Disable bind work in chroot | ||
| shell: control bind-chroot disabled | ||
|
|
||
| - name: Disable KRB5RCACHETYPE for bind | ||
| shell: grep -q KRB5RCACHETYPE /etc/sysconfig/bind || echo 'KRB5RCACHETYPE="none"' >> /etc/sysconfig/bind | ||
|
|
||
| - name: Add BIND9_DLZ plugin for bind | ||
| shell: grep -q 'bind-dns' /etc/bind/named.conf || echo 'include "/var/lib/samba/bind-dns/named.conf";' >> /etc/bind/named.conf | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest looking at |
||
|
|
||
| - name: generate options.conf for bind | ||
| template: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please specify file permissions while deploying file. |
||
| src: options.conf.j2 | ||
| dest: /etc/bind/options.conf | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| options { | ||
| version "unknown"; | ||
| directory "/etc/bind/zone"; | ||
| pid-file ""; | ||
| dump-file "/var/run/named_dump.db"; | ||
| statistics-file "/var/run/named.stats"; | ||
| recursing-file "/var/run/recursing"; | ||
|
|
||
| tkey-gssapi-keytab "/var/lib/samba/bind-dns/dns.keytab"; | ||
|
|
||
| //listen-on { localnets; {{ samba_network }}; }; | ||
| forwarders { {{ samba_dns_forward }}; }; | ||
| allow-query { localnets; {{ samba_network }}; }; | ||
| //allow-query-cache { localnets; {{ samba_network }}; }; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest to remove commented lines. |
||
| allow-recursion { localnets; {{ samba_network }}; }; | ||
|
|
||
| max-cache-ttl 86400; | ||
| //interfaces-interval 0; | ||
| }; | ||
|
|
||
| logging { | ||
| category lame-servers {null;}; | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you deleting lines with checksum?