Domain Detective

API Reference

Cmdlet

Get-DnsZone

Namespace DnsClientX.PowerShell

Performs a DNS zone transfer (AXFR) for a given zone.

Examples

Authored help example

Example 1


Get-DnsZone -Zone example.com -Server 127.0.0.1
        

Transfer a zone (default port 53)

Example 2


Get-DnsZone -Zone example.com -Server 127.0.0.1 -Port 5353
        

Transfer a zone from a custom port

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-DnsZone -Zone <string> -Server <string> [-Port <int>] [<CommonParameters>]
#

Parameters

Zone string requiredposition: 0pipeline: false
The zone to transfer.
Server string requiredposition: 1pipeline: falsealiases: ServerName
DNS server to query.
Port int optionalposition: namedpipeline: false
Port number to use. Defaults to 53.
{{ include "footer" }}