< Back

Get-NSnameserver

Fri Jan 10, 2020 9:56 pm

NAME Get-NSnameserver



SYNOPSIS

The get-nsnameserver returns the nameservers





SYNTAX

Get-NSnameserver [[-session] <nitro_service>] [[-filter] <string>] [<CommonParameters>]





DESCRIPTION

use get-nsnameserver search for nameservers





PARAMETERS

-session <nitro_service>

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



Required? false

Position? 0

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-filter <string>

Optional parameter to provide a filter to be used during search. Format "property:value,property:value" ex

"ip:10.12.45.6"



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

com.citrix.netscaler.nitro.service.nitro_service

This mandatory parameter requires a nitro_service object. This can be requested using the get-nitrosession and

pipelined into this command.



System.String

Optional parameter to provide a filter to be used during search. Format "property:value,property:value" ex

"ip:10.12.45.6"





OUTPUTS

com.citrix.netscaler.nitro.resource.config.dns.dnsnameserver





---------- EXAMPLE 1 ----------



get-nsnameserver



returns all nameserver

---------- EXAMPLE 2 ----------



get-nsnameserver -filter "ip:10.123.45.6"



returns name server object for 10.123.45.6



RELATED LINKS