Skip to content

ansible role to setup Bind/Named DNS server with sane secure default.

License

Notifications You must be signed in to change notification settings

juju4/ansible-bind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bc2bb5c · Mar 22, 2025
Mar 22, 2025
Jan 25, 2025
Jan 5, 2025
Aug 27, 2022
Jan 25, 2025
Jan 5, 2025
Jan 25, 2025
Apr 30, 2023
Dec 21, 2024
Jul 8, 2023
Oct 8, 2022
Mar 12, 2022
Mar 12, 2022
Aug 27, 2022
Mar 22, 2025
Mar 12, 2022
Nov 23, 2024
Feb 3, 2017
Mar 12, 2022
Dec 21, 2024
Mar 12, 2022
Mar 12, 2022

Repository files navigation

Actions Status - Master Actions Status - Devel

Secure Bind ansible role

Ansible role to setup Bind/Named DNS server with sane secure default. Including

  • Secure template from Team Cymru template (http://www.cymru.com/Documents/secure-bind-template.html). Please note than separated internal/external views are not implemented currently.
  • DNSSEC for authentication,
  • RPZ to whitelist/blacklist entries
  • Malware domains list blackholed
  • Eventual integration with MISP RPZ export
  • Authoritative DNS (mostly for internal zones) Mostly as cache/forwarder but could be other roles.

For internal domains, be aware:

Requirements & Dependencies

Ansible

It was tested on the following versions:

  • 2.10-17

Python module netaddr must be present to create reverse zones.

Operating systems

Tested on Ubuntu 24.04 (bind 9.18.28), 22.04 (9.18.1) and centos/rockylinux 9 (9.16.23).

Example Playbook

Just include this role in your list. For example

- host: all
  roles:
    - juju4.bind

Variables

Nothing specific for now.

Continuous integration

This role has a travis basic test (for github), more advanced with kitchen and also a Vagrantfile (test/vagrant).

Once you ensured all necessary roles are present, You can test with:

$ cd /path/to/roles/juju4.bind
$ kitchen verify
$ kitchen login

or

$ cd /path/to/roles/juju4.bind/test/vagrant
$ vagrant up
$ vagrant ssh

or

$ pip install molecule docker
$ molecule test
$ MOLECULE_DISTRO=ubuntu:24.04 molecule test --destroy=never

Troubleshooting & Known issues

License

BSD 2-clause

Thanks