Set-DnsServerForwarder

Set-DnsServerForwarder

Changes forwarder settings on a DNS server.

Sintaxe

Parameter Set: Set3
Set-DnsServerForwarder [[-IPAddress] <IPAddress[]> ] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-EnableReordering <Boolean> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-PassThru] [-ThrottleLimit <Int32> ] [-Timeout <UInt32> ] [-UseRootHint <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>] [ <WorkflowParameters>]

Descrição detalhada

The Set-DnsServerForwarder cmdlet changes forwarder settings on a Domain Name System (DNS) server. This cmdlet sets or resets IP addresses to which the DNS server forwards DNS queries when it cannot solve them locally. This cmdlet overwrites existing server level forwarders.

Setting IP addresses by using this cmdlet causes the DNS server to perform recursive queries to the DNS servers at the specified IP addresses. By default, the DNS server waits five seconds for a response from one forwarder IP address before it tries another forwarder IP address. You can use the Timeout parameter to change the number of seconds that the DNS server waits. When the server has exhausted all forwarders, it attempts standard recursion. By default, a DNS server performs iterative queries when it cannot resolve a query.

Parâmetros

-CimSession<CimSession[]>

Executa o cmdlet em uma sessão remota ou em um computador remoto. Insira um nome de computador ou um objeto de sessão, como a saída de um cmdlet New-CimSession ou Get-CimSession. O padrão é a sessão atual no computador local.

Aliases

Session

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

-ComputerName<String>

Specifies a remote DNS server. You can specify an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.

Aliases

Cn

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

-EnableReordering<Boolean>

Specifies wheter to enable the DNS server to reorder forwarders dynamically.

Aliases

none

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-InformationAction<System.Management.Automation.ActionPreference>

Aliases

infa

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

-InformationVariable<System.String>

Aliases

iv

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

-IPAddress<IPAddress[]>

Specifies an array of IP addresses of DNS servers where queries are forwarded. Specify the forwarders in the order that you want them to be configured.

Aliases

none

Obrigatório?

false

Posição?

2

Valor padrão

none

Aceitar entrada de pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-PassThru

Retorna um objeto que representa o item com o qual você está trabalhando. Por padrão, esse cmdlet não gera saída alguma.

Aliases

none

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

-ThrottleLimit<Int32>

Especifica o número máximo de operações simultâneas que podem ser estabelecidas para executar o cmdlet. Se esse parâmetro for omitido ou um valor de 0 for inserido, o Windows PowerShell ® calculará o limite ideal de aceleração para o cmdlet com base no número de cmdlets do CIM executados no computador. O limite se aplica somente ao cmdlet atual, não à sessão ou ao computador.

Aliases

none

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

-Timeout<UInt32>

Specifies the number of seconds that the DNS server waits for a response from the forwarder. The minimum value is 0, and the maximum value is 15. The default value is 5.

Aliases

none

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-UseRootHint<Boolean>

Specifies whether to prevent the DNS server from performing iterative queries. If you set UseRootHint to $false, the DNS server forwards unresolved queries only to the DNS servers in the forwarders list and does not try iterative queries if the forwarders do not resolve the queries.

Aliases

none

Obrigatório?

false

Posição?

named

Valor padrão

none

Aceitar entrada de pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-Confirm

Solicita confirmação antes de executar o cmdlet.

Obrigatório?

false

Posição?

named

Valor padrão

false

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

-WhatIf

Mostra o que ocorreria se o cmdlet fosse executado. O cmdlet não é executado.

Obrigatório?

false

Posição?

named

Valor padrão

false

Aceitar entrada de pipeline?

false

Aceitar caracteres curinga?

false

<CommonParameters>

Esse cmdlet oferece suporte aos parâmetros comuns: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Para obter mais informações, consulte  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

<WorkflowParameters>

Entradas

O tipo de entrada é o tipo dos objetos que você pode redirecionar para o cmdlet.

-

Class DNSForwarderSettings  
  
{  
  
uint32 ForwardDelegations; // Specifies whether the DNS server forwards queries to delegated subzones.  
  
DNSForwarders Forwarders\[\]; //Enumerates the list of IP addresses of forwarders to which the DNS server forwards queries.  
  
uint32 ForwardingTimeout; // Time, in seconds, that a DNS server that is forwarding a query will wait for resolution from the forwarder before it attempts to resolve the query itself. This value is meaningless if the forwarding server is not set to use recursion. To determine this, check the **IsSlave** Boolean property.  

boolean IsSlave; //True if the DNS server does not use recursion when name resolution through forwarders fails.  
  
}  

  

  

Saídas

O tipo de saída é o tipo de objeto que o cmdlet emite.

Exemplos

Example 1: Set a forwarder on a DNS server

This command overwrites the list of existing forwarders on a DNS server and specifies the IP address of a DNS server where queries are forwarded.

PS C:\> Set-DnsServerForwarder -IPAddress "10.0.0.1" -PassThru

Example 2: Disable reordering of forwarders on a DNS server

This command disables dynamic reordering of forwarders on a DNS server.

PS C:\> Set-DnsServerForwarder -EnableReordering $False -PassThru

Tópicos relacionados

Get-DnsServerForwarder

Add-DnsServerForwarder

Remove-DnsServerForwarder