PowerShell Logo Small

Add-DnsClientNrptRule



This is the built-in help made by Microsoft for the command 'Add-DnsClientNrptRule', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds a rule to the Name Resolution Policy Table (NRPT).

SYNTAX


Add-DnsClientNrptRule [-Namespace] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-Comment <String>] [-DAEnable] [-DAIPsecEncryptionType <String>] [-DAIPsecRequired]
[-DANameServers <String[]>] [-DAProxyServerName <String>] [-DAProxyType <String>] [-DisplayName <String>] [-DnsSecEnable] [-DnsSecIPsecEncryptionType <String>]
[-DnsSecIPsecRequired] [-DnsSecValidationRequired] [-GpoName <String>] [-IPsecTrustAuthority <String>] [-NameEncoding <String>] [-NameServers <String[]>] [-PassThru]
[-Server <String>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-DnsClientNrptRule cmdlet adds a Name Resolution Policy Table (NRPT) rule for the specified namespace.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?LinkId=287320
Get-DnsClientNrptGlobal
Get-DnsClientNrptPolicy
Get-DnsClientNrptRule
Remove-DnsClientNrptRule
Set-DnsClientNrptGlobal
Set-DnsClientNrptRule

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Add-DnsClientNrptRule -GpoName TestGPO -DANameServers 10.0.0.1 -DAIPsecRequired -DAIPsecEncryptionType "High" -DAProxyServerName "DaServer.com:6666" -DnsSecEnable
-PassThru -DAProxyType "UseProxyName" -DnsSecValidationRequired -DAEnable -IPsecTrustAuthority "RootCA" -Comment "Sample NRPT Rule" -DisplayName "Sample"
-DnsSecIPsecRequired -DnsSecIPsecEncryptionType "Medium" -NameServers 10.0.0.1 -NameEncoding "Punycode" -Namespace "dnsnrpt.com" -Server host1.com



This example adds an NRPT rule in TestGPO on server host1.com for the namespace dnsnrpt.com.




EXAMPLE 2

PS C:\>Add-DnsClientNrptRule -Namespace pqr.com -NameServers 10.0.0.1



This example adds an NRPT rule that configures the server named 10.0.0.1 as a DNS server for the namespace pqr.com.




EXAMPLE 3

PS C:\>Add-DnsClientNrptRule -Namespace pqr.com -DnsSecEnable



This example adds an NRPT rule that enables DNSSEC queries to be sent for the namespace pqr.com.




EXAMPLE 4

PS C:\>Add-DnsClientNrptRule -Namespace pqr.com -DnsSecEnable -NameServers 10.0.0.1



This example adds an NRPT rule that enables DNSSEC queries to be sent to DNS server named 10.0.0.1 for the namespace pqr.com.




EXAMPLE 5

PS C:\>Add-DnsClientNrptRule -Namespace pqr.com -NameEncoding Punycode -NameServers 10.1.1.1 -PassThru
Name : {6a78d8d1-231d-4d1e-bc23-fb593e11a53d}
Version : 2
Namespace : {pqr.com}
IPsecCARestriction :
DirectAccessDnsServers :
DirectAccessEnabled : False
DirectAccessProxyType :
DirectAccessProxyName :
DirectAccessQueryIPsecEncryption :
DirectAccessQueryIPsecRequired :
NameServers : 10.1.1.1
DnsSecEnabled : False
DnsSecQueryIPsecEncryption :
DnsSecQueryIPsecRequired :
DnsSecValidationRequired :
NameEncoding : Punycode
DisplayName :
Comment :



This example adds an NRPT rule that sends DNS queries encoded in Punycode to DNS server named 10.1.1.1 for the namespace pqr.com.