dsccommunity / xDhcpServer

This module contains DSC resources for deployment and configuration of Microsoft DHCP Server.
MIT License
26 stars 33 forks source link

Configure DHCP Server DNS Dynamic Updates #65

Open younkinsa77 opened 4 years ago

younkinsa77 commented 4 years ago

ISSUE TITLE:

NewResourceName: DhcpServerDnsDynamicUpdates

Description

Set DHCP to update DNS Dynamically and Delete DNS Resource Records when lease expires (e.g. 'Set-DhcpServerv4DnsSetting -Computername "" -DynamicUpdates "Always" -DeleteDnsRRonLeaseExpiry $True')

Proposed properties

xDhcpServerDnsDynamicUpdates Ensure: 'Present' EnableDnsDynamicUpdates: 'Always, Never, Requested' DiscardDhcpRR: 'Enabled/Disabled' or 'True/False' DynamicUpdateDnsRRRequest: 'Enabled/Disabled' or 'True/False'

Special considerations or limitations

CraigTolley commented 3 years ago

I came here to raise this exact issue. Did you do any development on this? If not I will have a look and see if I can pull something together.

CraigTolley commented 3 years ago

In addition to this, I think there should be an additional property:

DnsDynamicUpdateCredential

Which would map to Get-DhcpServerDnsCredential. I'm not exactly sure how to test if the correct password has been specified, but I'm sure that can be worked out.