Comment on page
Microsoft DNS Server on Microsoft Windows Server
This provider updates a Microsoft DNS server.
It interacts with the server via PowerShell commands. As a result, DNSControl must be run on Windows and will automatically disable itself when run on non-Windows systems.
DNSControl will use
New-PSSessionto execute the commands remotely if
computernameis set in
- Two systems updating a zone is never a good idea. If Windows Dynamic DNS and DNSControl are both updating a zone, there will be unhappiness. DNSControl will blindly remove the dynamic records unless precautions such as
NO_PURGEare in use.
Currently this driver disables itself when run on Non-Windows systems.
It should be possible for non-Windows hosts with PowerShell Core installed to execute commands remotely via SSH. The module used to talk to PowerShell supports this. It should be easy to implement. Volunteers requested.
To use this provider, add an entry to
MSDNSalong with other settings:
dnsserver: (optional) the name of the Microsoft DNS Server to communicate with.
psusername: (optional) the username to connect to the PowerShell PSSession host.
pspassword: (optional) the password to connect to the PowerShell PSSession host.
An example DNS configuration:
var REG_NONE = NewRegistrar("none");
var DSP_MSDNS = NewDnsProvider("msdns");
D("example.com", REG_NONE, DnsProvider(DSP_MSDNS),