win_dns_server

pdk
Module to manage Windows DNS server instances

Arden Puppet

arden

413 downloads

413 latest version

5.0 quality score

Version information

  • 0.1.0 (latest)
released Mar 31st 2021
This version is compatible with:
  • Puppet Enterprise 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
  • Puppet >= 5.5.18 < 8.0.0
  • windows

Start using this module

Tags: facts

Documentation

arden/win_dns_server — version 0.1.0 Mar 31st 2021

win_dns_server

pipeline status Version coverage report

Table of Contents

  1. Description
  2. Setup - The basics of getting started with win_dns_server
  3. Usage
  4. Limitations
  5. Development - Guide for contributing to the module

Description

This module provides a basic method to manage the configuration of the DNS server feature on a Windows server instance. While much of the configuration is accomplished via PowerShell DSC it was necessary to implement a new wrapper for the currently unsupported Conditional Forwarder Zone types.

Setup

Setup Requirements

Pluginsync should be enabled. Additionally, you'll need to perform the configuration steps detailed for the DSC, pwshlib, and the resource_api module.

Beginning with win_dns_server

The following example will configure the DNS service, perform some basic global settings, and create two forwarder zones.

win_dns_server::hash_server_settings:
  debug_log_path: 'C:\temp\dns_debug.log'
  disable_recursion: false
  round_robin_responses: true
win_dns_server::array_publish_addresses:
  - '10.100.100.10'
  - '10.200.100.10'
win_dns_server::hash_forwarder_zones:
  '10.in-addr.arpa':
    master_servers:
      - '172.17.100.10'
      - '172.17.100.11'
    use_recursion: false

Limitations

Currently AD backed DNS servers are only supported in a limited form. You should not try to create conditional forwarder zones on them!

Also, if the target zone already exists but is of the incorrect type things will go sideways. This is poorly tested at the moment, however, I believe the command will silently fail to create the target zone.

Development

Make a pull request and we'll figure it out!