Invoke ADCAddDnsnameserver - j81blog/J81.ADCToolkit GitHub Wiki

Invoke-ADCAddDnsnameserver

SYNOPSIS

Add Domain Name Service configuration Object.

SYNTAX

Invoke-ADCAddDnsnameserver [[-Ip] <String>] [[-Dnsvservername] <String>] [[-Local] <Boolean>]
 [[-State] <String>] [[-Type] <String>] [[-Dnsprofilename] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Configuration for name server resource.

EXAMPLES

EXAMPLE 1

Invoke-ADCAddDnsnameserver

An example how to add dnsnameserver configuration Object(s).

PARAMETERS

-Ip

IP address of an external name server or, if the Local parameter is set, IP address of a local DNS server (LDNS).

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Dnsvservername

Name of a DNS virtual server. Overrides any IP address-based name servers configured on the Citrix ADC.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Local

Mark the IP address as one that belongs to a local recursive DNS server on the Citrix ADC. The appliance recursively resolves queries received on an IP address that is marked as being local. For recursive resolution to work, the global DNS parameter, Recursion, must also be set. If no name server is marked as being local, the appliance functions as a stub resolver and load balances the name servers.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-State

Administrative state of the name server. Possible values = ENABLED, DISABLED

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: ENABLED
Accept pipeline input: False
Accept wildcard characters: False

-Type

Protocol used by the name server. UDP_TCP is not valid if the name server is a DNS virtual server configured on the appliance. Possible values = UDP, TCP, UDP_TCP

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: UDP
Accept pipeline input: False
Accept wildcard characters: False

-Dnsprofilename

Name of the DNS profile to be associated with the name server.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
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
Parameter Sets: (All)
Aliases: wi

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

File Name : Invoke-ADCAddDnsnameserver Version : v2111.2521 Author : John Billekens Reference : https://developer-docs.citrix.com/projects/citrix-adc-nitro-api-reference/en/latest/configuration/dns/dnsnameserver/ Requires : PowerShell v5.1 and up ADC 13.x and up. ADC 12 and lower may work, not guaranteed.

RELATED LINKS

https://blog.j81.nl

⚠️ **GitHub.com Fallback** ⚠️