Forge Home


Update Active Directory DNS from linux clients


9,701 latest version

3.1 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

  • 0.1.3 (latest)
  • 0.1.2 (deleted)
  • 0.1.1 (deleted)
  • 0.1.0 (deleted)
released Mar 20th 2015
This version is compatible with:
  • Puppet Enterprise >= 3.3.0 < 4.0.0
  • Puppet >= 3.0.0 < 4.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'swizzley88-dnsupdate', '0.1.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add swizzley88-dnsupdate
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install swizzley88-dnsupdate --version 0.1.3

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.

Tags: dns, nsupdate, a, ptr


swizzley88/dnsupdate — version 0.1.3 Mar 20th 2015


Puppet Forge

Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Requirements
  6. Compatibility
  7. Limitations
  8. Development


This is the dnsupdate module. It uses nsupdate included with bind-utils to manage DNS records.

Module Description

This module will delete invalid A records, and create valid A records with a matching PTR in Microsoft Active Directory Integrated DNS. It checks to make sure the bind-utils package is installed and creates a nsupdate file /etc/nsupdate which is formed from template using facter in for an nsupdate script. It then queuries DNS using nslookup to match PTR and A records, if either don't match, it runs.


You may need to configure AD DNS security to allow the zone updates.


include dnsupdate


puppetlabs/stdlib >= 4.2.0


  • RHEL 5, 6, 7
  • CentOS 6, 7
  • Oracle Enterprise Linux 5, 6, 7
  • Fedora 18, 19, 20, 21


This module has been tested on:


  • Microsoft Windows Server 2008 R2


  • RHEL 7
  • CentOS 6
  • CentOS 5
  • Oracle Enterprise Linux 6



  • John Richards (MOD) original bash service script this module was based on
  • Justin Dossey (New Context) for the elegant sed
  • TomyWork (IRC #puppet) for the helping me figure out the operator and shell provider for unless