PowerShell Logo Small

Resolve-DnsName



This is the built-in help made by Microsoft for the command 'Resolve-DnsName', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Performs a DNS name query resolution for the specified name.

SYNTAX


Resolve-DnsName [-Name] <String> [[-Type] <RecordType>] [-CacheOnly] [-DnsOnly] [-DnssecCd] [-DnssecOk] [-LlmnrFallback] [-LlmnrNetbiosOnly] [-LlmnrOnly] [-NetbiosFallback]
[-NoHostsFile] [-NoIdn] [-NoRecursion] [-QuickTimeout] [-Server <String[]>] [-TcpOnly] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Resolve-DnsName cmdlet performs a DNS query for the specified name. This cmdlet is functionally similar to the nslookup tool which allows users to query for names.


Note: The Resolve-DnsName cmdlet will return a maximum of 25 A and AAAA records from NS servers.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?linkid=287336
Nslookup on TechNet



REMARKS

<

Examples


EXAMPLE 1

PS C:\> Resolve-DnsName –Name www.bing.com



This example resolves a name using the default options.




EXAMPLE 2

PS C:\> Resolve-DnsName -Name www.bing.com -Server 10.0.0.1



This example resolves a name against the DNS server at 10.0.0.1.




EXAMPLE 3

PS C:\> Resolve-DnsName -Name www.bing.com -Type A



This example queries for A type records for name www.bing.com.




EXAMPLE 4

PS C:\> Resolve-DnsName -Name www.bing.com -DnsOnly



This example resolves a name using only DNS. LLMNR and NetBIOS queries are not issued.