API Reference
Cmdlet
Get-DnsZone
Performs a DNS zone transfer (AXFR) for a given zone.
Examples
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
- The zone to transfer.
- Server string
- DNS server to query.
- Port int
- Port number to use. Defaults to 53.