Add-DnsServerRootHint
DNS Cmdlet: Add-DnsServerRootHint
Syntax:
Add-DnsServerRootHint [-ComputerName <String>][-PassThru] [-InputObject] <CimInstance>[-CimSession <CimSession[]>] [-ThrottleLimit <Int32>][-AsJob][-WhatIf][-Confirm][<CommonParameters>]
Parameters and Description:
| Parameters | Description |
|---|---|
| AsJob (Type: SwitchParameter) | This parameter is used to run commands that take extended times to execute; the parameter runs the cmdlet. |
| InputObject (Type: CimInstance) | Denotes this cmdlet's input. This parameter can be used directly or the input can be piped to this cmdlet. |
| WhatIf (Type: SwitchParameter) | Shows the result of running this cmdlet. |
| PassThru (Type: SwitchParameter) | Specifies the object that you are working with. |
| 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. The cmdlet is run on the local computer in the current session by default. |
| ThrottleLimit (Type: Int32) | Specifies the maximum number of parallel 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-DnsServerRootHint, please refer to this article.
Purpose of this cmdlet:
The Add-DnsServerRootHint cmdlet lets you add root hints on a DNS server. It can be done by either specifying the DNS name server and IP address or through input object parameter to specify the object.
Example:
Add-DnsServerRootHint -NameServer "root.abc.com" -IPAddress xxx.xx.xx.xxx
If the above command is executed, then the IP address xxx.xx.xx.xxx is added for the name server root.abc.com to the root hints list on the local DNS server
Download ADManager Plus' 30-day trial to experience how you can do the following without writing even a single line of PowerShell script:
- Fetch important AD-related data via 200+ out-of-the-box reports
- Allow or stop a user from logging on to specific machines
- List all computers running on particular operating systems, and more.
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
