Set-DhcpServerv6DnsSetting

Set-DhcpServerv6DnsSetting is accessible with the help of DHCPServer module. To configure DHCPServer, go through this link.

Synopsis

Configures how the Dynamic Host Configuration Protocol (DHCP) server service updates the DNS server with the client-related information.

Description

The Set-DhcpServerv6DnsSetting cmdlet configures how the Dynamic Host Configuration Protocol (DHCP) server service updates the DNS server with the client-related information. The Prefix or IPAddress parameter must be specified with at least one of the optional parameters. The Prefix and IPAddress cannot both be specified. If neither the Prefix nor IPAddress parameter is specified, then this cmdlet sets DNS update setting at the server level.

This cmdlet modifies the effective DNS update setting and sets it on the specified reservation, scope, or server level.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell background jobs, see about_Jobs.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ComputerName

Specifies the DNS name, or IPv4 or IPv6 address, of the target computer that runs the DHCP server service.

Type:String
Aliases:Cn
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-DeleteDnsRROnLeaseExpiry

Specifies whether the DHCP server service deletes the DNS resource records for the DHCP client after the lease expires. This parameter can only be set if the DynamicUpdate parameter is set to Always or OnClientRequest.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-DynamicUpdates

Specifies the conditions under which to perform dynamic updates on the DNS server. The acceptable values for this parameter are:

  • Always. The DHCP server service always performs dynamic DNS registration of A and PTR records for the DHCP clients.
  • Never. The DHCP server service does not perform any dynamic DNS registration.
  • OnClientRequest. The DHCP server service performs dynamic DNS registration of A and PTR records if the DHCP client has requested for the same in the DHCP client message.
Type:String
Accepted values:Always, Never, OnClientRequest
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-IPAddress

Specifies the IPv6 address of the reservation on which the DNS update behavior is configured.

Type:IPAddress
Aliases:ReservedIP
Position:2
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-NameProtection

Sets the enabled state for the name protection on the DHCP server service. If you specify this parameter and there is an existing DNS record already by the same name, the DNS update for the client fails instead of being overwritten.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Prefix

Specifies the subnet prefix of the IPv6 scope on which the DNS update behavior is configured.

Type:IPAddress
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Set-DhcpServerv6DnsSetting [-ComputerName <String>] [-NameProtection <Boolean>] [-DeleteDnsRROnLeaseExpiry <Boolean>] [-DynamicUpdates <String>] [[-IPAddress] <IPAddress>] [[-Prefix] <IPAddress>] [-PassThru] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [-WhatIf] [-Confirm] [<CommonParameters>]

—————EXAMPLE 1—————
PS C:>Set-DhcpServerv6DnsSetting -ComputerName dhcpsrv.TOSSolution.com -DynamicUpdates Always -DeleteDnsRRonLeaseExpiry $true
This example sets the DHCPv6 server level, or server-wide, DNS update configuration settings to always update DNS with leases entries, enables NAP protection by creating dynamic host configuration identifier (DHCID) resource records, and deletes the client entry from the DNS server when the lease expires.

—————EXAMPLE 2—————
PS C:\>Set-DhcpServerv6DnsSetting -ComputerName dhcpsrv.TOSSolution.com -Prefix 2001:4898:7020:1111:: -DynamicUpdates OnClientRequest -NameProtection $true
This example sets the DNS update configuration settings for scope 2001:4898:7020:1111:: to update the DNS server with lease entries based on client request using the fully qualified domain name (FQDN) option (ID 81), and enables name protection by creating dynamic host configuration identifier (DHCID) resource records.

—————EXAMPLE 3—————
PS C:\>Set-DhcpServerv6DnsSetting -ComputerName dhcpsrv.TOSSolution.com -IPAddress 2001:4898:7020:1111::5 -DynamicUpdates Never
This example sets the DNS update configuration settings for the reserved IP address 2001:4898:7020:1111::5 to never update the DNS server for client lease entries.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Set-DhcpServerv6DnsSetting

Get-Command Set-DhcpServerv6DnsSetting

You can also read about

  • Get-DhcpServerv6DnsSetting

To know more PowerShell cmdlets(Commands) on DHCPServer click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *