| |
| ============ |
| Bind formula |
| ============ |
| |
| BIND is open source software that enables you to publish your Domain Name System (DNS) information on the Internet, and to resolve DNS queries for your users. The name BIND stands for “Berkeley Internet Name Domain”, because the software originated in the early 1980s at the University of California at Berkeley. |
| |
| Sample pillars |
| ============== |
| |
| Server |
| ------ |
| |
| .. code-block:: yaml |
| |
| bind: |
| server: |
| enabled: true |
| key: |
| keyname: |
| secret: xyz |
| algorithm: hmac-sha512 |
| server: |
| 8.8.8.8: |
| keys: |
| - keyname |
| control: |
| local: |
| enabled: true |
| bind: |
| address: 127.0.0.1 |
| port: 953 |
| allow: |
| - 127.0.0.1 |
| keys: |
| - xyz |
| zone: |
| sub.domain.com: |
| ttl: 86400 |
| root: "hostmaster@domain.com" |
| type: master |
| ns: zone.name.server. |
| refresh: 43200 |
| retry: 180 |
| expire: 1209600 |
| nxttl: 10 |
| records: |
| - name: @ |
| type: A |
| ttl: 7200 |
| value: 192.168.0.5 |
| # Allow autoload of host records from salt mine. |
| auto_records: true |
| 1.168.192.in-addr.arpa: |
| type: master |
| notify: false |
| slave.domain.com: |
| type: slave |
| notify: true |
| masters: |
| # Masters must be specified by IP address |
| - 8.8.8.8 |
| - 8.8.4.4 |
| dnssec: |
| enabled: true |
| # Don't hide version |
| version: true |
| # Allow recursion, better don't on public dns servers |
| recursion: |
| hosts: |
| - localhost |
| |
| You can use following command to generate key: |
| |
| .. code-block:: bash |
| |
| dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST -r /dev/urandom mykey |
| |
| Client |
| ------ |
| |
| .. code-block:: yaml |
| |
| bind: |
| client: |
| enabled: true |
| option: |
| default: |
| server: localhost |
| port: 953 |
| key: keyname |
| key: |
| keyname: |
| secret: xyz |
| algorithm: hmac-sha512 |
| server: |
| 8.8.8.8: |
| keys: |
| - keyname |
| |
| Read more |
| ========= |
| |
| * https://github.com/theforeman/puppet-dns |
| * https://help.ubuntu.com/community/BIND9ServerHowto |
| * https://www.isc.org/downloads/bind/ |