NetCmdlets 2016
NetCmdlets 2016
Questions / Feedback?

Get-DNS Cmdlet

Parameters   Output Objects   Configuration Settings  

The Get-DNS cmdlet is used to query a DNS server for records.

Syntax

Get-DNS [parameters]

Remarks

The cmdlet will attempt to obtain DNS records for the domain specified in Domain for records of the type QueryType. The cmdlet will attempt to use the default DNS settings for the system, but the DNS server and port may be explicitly set as DNSServer and Port.

The cmdlets support pipeline input for some of their parameters. Prebuilding an object and piping it to the cmdlet is very useful, but should be used with caution to prevent security conflicts. Steps have been taken to decrease the risk of a possibly accidental pipe to the cmdlet, for instance, the Credential parameter cannot be piped to the cmdlet and must be specified manually.

Example

# using default DNS and query type (address)
get-dns -domain nsoftware.com
# specifying DNS and record type
get-dns -dnsserver 10.0.1.1 -port 53 -domain microsoft.com -querytype NS

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

LogFileThe location of a file to which debug information is written.
ConfigSpecifies one or more configuration settings.
DNSServerThe address of the DNS Server to use.
DomainThe domain to query.
LocalIPThe IP address of the local interface to use.
LogFileThe location of a file to which debug information is written.
PortThe TCP port in the remote host to which to connect.
QueryTypeThe record type to query.
RecordSourceThe source of records provided in the DnsEntry output.
RecursiveDetermines whether to ask the DNSServer to recursively query other servers.
TimeoutThe maximum time allowed for the operation.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

DnsEntryThis object is created after a DNS record has been returned.

Configuration Settings


The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.

UseDNSAPIDLLWhether to use the system dnsapi.dll on Windows Systems.
CaptureIPPacketInfoUsed to capture the packet information.
DestinationAddressUsed to get the destination address from the packet information.
DontFragmentUsed to set the Don't Fragment flag of outgoing packets.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe TCP port in the local host where the cmdlet binds.
MaxPacketSizeThe maximum length of the packets that can be received.
ShareLocalPortIf set to True, allows more than one instance of the cmdlet to be active on the same local port.
UseConnectionDetermines whether to use a connected socket.
QOSDSCPValueUsed to specify an arbitrary QOS/DSCP setting (optional).
QOSTrafficTypeUsed to specify QOS/DSCP settings (optional).
UseIPv6Whether or not to use IPv6.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
CodePageThe system code page used for Unicode to Multibyte translations.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
NetCmdlets 2016 - Version 16.0 [Build 6335]