dnscmd /enlistdirectorypartition command
A command-line interface for managing DNS servers. This utility is useful in scripting batch files to help automate routine DNS management tasks, or to perform simple unattended setup and configuration of new DNS servers on your network.
Adds the DNS server to the specified directory partition’s replica set.
dnscmd [<servername>] /enlistdirectorypartition <partitionFQDN>
||Specifies the DNS server to manage, represented by IP address, FQDN, or host name. If this parameter is omitted, the local server is used.|
||The FQDN of the DNS application directory partition.|