Add-DnsServerSecondaryZone
DNS Cmdlet: Add-DnsServerSecondaryZone
Syntax:
Add-DnsServerSecondaryZone[-LoadExisting][-MasterServers] <IPAddress[]> [-ComputerName <String>][-PassThru][-Name] <String>[-ZoneFile] <String> [-CimSession <CimSession[]>][-ThrottleLimit <Int32>][-AsJob] [-WhatIf][-Confirm][<CommonParameters>]
Parameters and Description:
| Parameters | Description |
|---|---|
| LoadExisting (Type: SwitchParameter) | This parameter is specified only for file-backed zones and it denotes that the server loads an existing file for the zone. |
| MasterServers (Type: IPAddress[]) | Specifies the list of IP addresses of the master servers of the zone. Both IPv4 and IPv6 addresses can be used. |
| NetworkId (Type: String) | Denotes the network ID and prefix length for a reverse lookup zone. The formats used are A.B.C.D/prefix for IPv4 and 1111:2222:3333:4444::/prefix for IPv6 addresses. |
| ZoneFile (Type: String) | This parameter is specified only for file-backed DNS and it denotes the name of the zone file. |
| ComputerName (Type: String) | Enter the IP address, NETBIOS name, FQDN or host name of the DNS server. |
| CimSession (Type: CimSession [] ) | Runs the cmdlet on a remote computer or session. By default, the cmdlet is run on the local computer in the current session. |
| ThrottleLimit (Type: Int32) | Specifies the maximum number of concurrent operations that can be allowed to run this cmdlet. If its value is 0 or not specified, PowerShell will calculate the right throttle limit automatically. |
To know further on Add-DnsServerSecondaryZone, please refer to this article.
Purpose of this cmdlet:
The Add-DnsServerSecondaryZone cmdlet adds a specified secondary zone (Either a forward lookup zone or a reverse lookup zone) on the DNS server.
Example:
Add-DnsServerSecondaryZone -Name "western.abc.com" -ZoneFile
"western.abc.com.dns" -MasterServers xxx.xx.xx.xxx
The above command creates a secondary, file-backed DNS server zone named western.abc.com with the specified master server.
Did you know that you can do the following computer objects-related tasks without any scripts:
- List all computers running on a specific operating system.
- Create, enable, or disable computers in bulk.
- Generate report to see all the computers in a domain which are trusted for delegation, and more.
Download the 30-day free trial of ADManager Plus and check out the rest of the features the powerful tool offers!
Active Directory Management and Reporting Solution
ADManager Plus is a web-based tool which offers the capability to manage Active Directory attributes in bulk easily using CSV files or templates. Get built-in reports on users and export them in CSV, PDF, HTML and XLSX formats.
Unravel end-to-end Active Directory management with ADManager Plus
-
- ADManager Plus Active Directory Management & Reporting
- ADAudit Plus Hybrid AD, cloud, and file auditing and security
- EventLog Analyzer Real-time Log Analysis & Reporting
- ADSelfService Plus Self-Service Password Management
- AD360 Integrated Identity & Access Management
- Log360 Comprehensive SIEM and UEBA
- AD Free Tools Active Directory FREE Tools
