PowerShell DNS Commands:Add-DnsServerResourceRecordA
PowerShell DNS Commands » Add-DnsServerResourceRecordA

Add-DnsServerResourceRecordA

DNS Cmdlet: Add-DnsServerResourceRecordA

Syntax:

Add-DnsServerResourceRecordA [-AllowUpdateAny][-CreatePtr][-Name] <String> [-IPv4Address] <IPAddress[]>[-ComputerName <String>][-TimeToLive <TimeSpan>] [-ZoneName] <String>[-AgeRecord][-PassThru][-ZoneScope <String>][-VirtualizationInstance <String>][-CimSession <CimSession[]>] [-ThrottleLimit <Int32>][-AsJob][-WhatIf] [-Confirm][<CommonParameters>]

Parameters and Description:

Parameters Description
AllowUpdateAny (Type: SwitchParameter) Denotes that the authenticated users can update resource records of the same owner name.
CreatePtr (Type: SwitchParameter) Represents that the DNS server creates an associated pointer resource record (PTR) for an A record automatically.
IPv4Address |(Type: IPAddress[]) Specifies a list of IPv4 addresses.
TimeToLive (Type: TimeSpan) Denotes the Time To Live (TTL) value in seconds for a given resource record.
ZoneScope (Type: String) Denotes the name of a zone scope.
VirtualizationInstance (Type: String) It is a logical partition in the DNS server and this parameter denotes the virtualization instance in which the zone will be added.
ThrottleLimit (Type: Int32) Specifies the maximum number of concurrent operations that can allowed to run this cmdlet.
Confirm (Type: SwitchParameter) Prompts you to a final confirmation before executing the cmdlet.

For more information on this cmdlet, please refer to this article.

Purpose of this cmdlet:

The Add-DnsServerResourceRecordA cmdlet allows you to host address (A) record to a DNS zone and the A record denotes an IPv4 address.

Example:

Add-DnsServerResourceRecordA -Name "host12" -ZoneName "abc.com"
-AllowUpdateAny -IPv4Address "xxx.xx.xx.xx" -TimeToLive 01:00:00

The above command adds a type A DNS record for the host12 in the abc.com zone. The command specifies the AllowUpdateAny parameter and also provides a TTL.

Did you know that with ADManager Plus, you can:

  • Create, modify or delete AD contacts in bulk using templates or CSV files
  • Bulk create and manage AD organizational units (OUs) in a few clicks
  • Manage group membership and file server permissions efficiently, and more.

Download the 30-day free trial of ADManager Plus and try out the features in your AD environment!

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

  •  
  •  
  •  
  • By clicking 'Schedule a personalized demo' you agree to processing of personal data according to the Privacy Policy.
AD User Management / Reports
Active Directory Reporting
Active Directory Management
Related Products