Add-DnsServerResourceRecordPtr
DNS Cmdlet: Add-DnsServerResourceRecordPtr
Syntax:
Add-DnsServerResourceRecordPtr [-AllowUpdateAny][-PtrDomainName] <String> [-Name] <String> [-ComputerName <String>][-ZoneName] <String>[-TimeToLive <TimeSpan>][-AgeRecord][-PassThru][-ZoneScope <String>][-VirtualizationInstance <String>][-CimSession <CimSession[]>][-ThrottleLimit <Int32>][-AsJob][-WhatIf] [-Confirm][<CommonParameters>]
Parameters and Description:
| Parameters | Description |
|---|---|
| MailExchange (Type: String) | Specifies an FQDN value for a resource record in the DNS namespace. The value is a response to the reverse lookup using the PTR. |
| TimeToLive (Type: TimeSpan) | Specifies the Time To Live (TTL) value in seconds for a given resource record. |
| AgeRecord (Type: SwitchParameter) | Denotes that a time stamp is used by the DNS server for the resource record added by this cmdlet. |
| Preference (Type: UInt16) | It is a logical partition in the DNS server and this parameter denotes the virtualization instance in which the zone will be added. |
| AllowUpdateAny (Type: SwitchParameter) | Indicates that any authenticated user can update resource records of the same owner name. |
| ComputerName (Type: String) | Enter the IP address, FQDN, NETBIOS name, or host name of the DNS server. |
| CimSession (Type: CimSession [] ) | Runs the cmdlet on a remote computer or session. The cmdlet is run on the local computer in the current session by default. |
| ThrottleLimit (Type: Int32) | Specifies the number of maximum concurrent operations that can be allowed to run this cmdlet. If its value is 0 or not specified, PowerShell will automatically calculate the right throttle limit. |
To know further on Add-DnsServerResourceRecordPtr, please refer to this article.
Purpose of this cmdlet:
The Add-DnsServerResourceRecordPtr cmdlet lets you add a specified pointer record (PTR) to a specified DNS zone.
Example:
Add-DnsServerResourceRecordPtr -Name "17" -ZoneName "x.xxx.xxx.in-addr.arpa"
-AllowUpdateAny -TimeToLive 01:00:00 -AgeRecord -PtrDomainName "host01.abc.com"
The above command adds a type PTR DNS record in the abc.com zone. The record maps the IP address xxx.xxx.x.17 to the name host01.abc.com. As the command includes the AgeRecord parameter, the record can be scavenged by a DNS server.
Did you know that with ADManager Plus, in just a few clicks you can generate reports on:
- Recently created groups, distribution and security groups, group members, etc.
- Generate reports on recently created, modified and GPO linked OUs
- Generate custom reports based on your organization needs, and more.
Download the 30-day trialto try out these features in your own 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
-
- 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
