Forge Home

dns

Manage the ISC BIND daemon

408,593 downloads

263 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 11.0.1 (latest)
  • 11.0.0
  • 10.4.0
  • 10.3.0
  • 10.2.0
  • 10.1.0
  • 10.0.0
  • 9.6.0
  • 9.5.1
  • 9.5.0
  • 9.4.0
  • 9.3.0
  • 9.2.0
  • 9.1.0
  • 9.0.0
  • 8.2.0
  • 8.1.0
  • 8.0.0
  • 7.0.0
  • 6.2.0
  • 6.1.0
  • 6.0.0
  • 5.4.0
  • 5.3.1
  • 5.3.0
  • 5.2.0
  • 5.1.0
  • 5.0.1
  • 5.0.0
  • 4.1.0
  • 4.0.0
  • 3.4.1
  • 3.4.0
  • 3.3.1
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.0.1
  • 2.0.0
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.2.0-rc3 (pre-release)
  • 1.2.0-rc2 (pre-release)
  • 1.2.0-rc1 (pre-release)
released Nov 4th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • , , , , , , Archlinux, ,

Start using this module

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

Add this module to your Puppetfile:

mod 'theforeman-dns', '11.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add theforeman-dns
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install theforeman-dns --version 11.0.1

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, foreman, named, isc

Documentation

theforeman/dns — version 11.0.1 Nov 4th 2024

Puppet Forge Build Status

DNS module for Puppet

Installs and manages an ISC BIND DNS server with basic zones, primarily for The Foreman.

Usage

Include the top level dns class to fully configure the service.

include dns

A key is set up to allow dynamic DNS updates, stored in rndc.key. This is used by Foreman's smart proxy to add and remove records on the fly.

Zones can be created with the dns::zone resource:

dns::zone { 'example.com': }

Keys can be created with the dns::key resource:

dns::key {'dns-key':}

Slaves can also be configured by setting allow_transfer in the master's zone and setting zonetype => 'slave' in the slave's zone.

Logging can be added with the dns::logging_categories and dns::logging_channels defined types. The following Hiera example shows all the available options:

dns::logging_categories:
  unmatched:
    channels:
      - 'test_file'
      - 'test_stderr'
      - 'test_syslog'
      - 'test_null'
dns::logging_channels:
  test_file:
    file_path: '/var/log/named/test.log'
    file_versions: 3
    file_size: '5m'
    log_type: 'file'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
  test_null:
    log_type: 'null'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
  test_stderr:
    log_type: 'stderr'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
  test_syslog:
    log_type: 'syslog'
    print_category: 'yes'
    print_severity: 'yes'
    print_time: 'yes'
    severity: 'dynamic'
    syslog_facility: 'auth'

Credits

Based on zleslie-dns, with a lot of the guts ripped out. Thanks to zleslie for the original work

Contributing

  • Fork the project
  • Commit and push until you are happy with your contribution
  • Send a pull request with a description of your changes

See the CONTRIBUTING.md file for much more information.

More info

See https://theforeman.org and https://theforeman.org/support.html for support

Copyright (c) 2010-2016 Foreman developers and Zach Leslie

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.