bind

contributions requested
Puppet module for bind

15,705 downloads

6,140 latest version

4.6 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 6.0.0 (latest)
  • 5.1.0
  • 5.0.0
  • 4.0.0
  • 3.0.0
  • 2.0.0
  • 1.2.0
  • 1.1.7
  • 1.1.6
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.11
  • 1.0.10
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0 (deleted)
released Aug 28th 2018
This version is compatible with:
  • RedHat
    ,
    CentOS
    ,
    Ubuntu
    ,
    Debian

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'aneesh-bind', '6.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add aneesh-bind
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install aneesh-bind --version 6.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: bind, dns, bind9, named

Documentation

aneesh/bind — version 6.0.0 Aug 28th 2018

BIND Module

Overview

This module install and configure bind dns server.

Usage

Default configuration:

include bind

Change configuration file settings:

class { 'bind':
    listen_on              => 'port 53 { 127.0.0.1; }',
    listen_on_v6           => 'port 53 { ::1; }',
    directory              => '"/var/named"',
    dump_file              => '"/var/named/data/cache_dump.db"',
    statistics_file        => '"/var/named/data/named_stats.txt"',
    memstatistics_file     => '"/var/named/data/named_mem_stats.txt"',
    allow_query            => '{ localhost; }',
    allow_update           => '{ none; }',
    allow_transfer         => '{ none; }',
    recursion              => 'no',
    dnssec_enable          => 'yes',
    dnssec_validation      => 'yes',
    bindkeys_file          => '"/etc/named.iscdlv.key"',
    managed_keys_directory => '"/var/named/dynamic"',
    pid_file               => '"/run/named/named.pid"',
    session_keyfile        => '"/run/named/session.key"',
    version                => '"[SECURED]"',
    server_id              => 'none',
    cleaning_interval      => '120',
    interface_interval     => '0',
    max_ncache_ttl         => '3600',
    nnotify                => 'no',
    logging                => true,
    zone                   => {
      'example.com' => [
        'type master',
        'file "example.com.db"',
        'allow-transfer { none; }',
        'allow-query    { any; }',
        'allow-update   { none; }',
      ],
    },
    include                => [ '"/etc/named.rfc1912.zones"', '"/etc/named.root.key"' ],
}

Create zone file:

bind::zone_file { 'example.com.db':
    file_name       => 'example.com.db',
    nameserver      => 'ns1.example.com.',
    admin           => 'admin@example.com.',
    ttl             => '3600',
    serial          => '1',
    refresh         => '3600',
    retry           => '1800',
    expire          => '3600',
    minimum         => '3600',
    records         => [
'@      IN      NS      ns1.example.com.',
'@      IN      A       192.168.1.105',
'ns1    IN      A       192.168.1.105',
'www    IN      A       192.168.1.105'
    ],
}