Resolve-DnsName

Resolve-DnsName

Performs a DNS name query resolution for the specified name.

Sintaxis

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

Descripción detallada

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.

Parámetros

-CacheOnly

Resolves this query using only the local cache.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-DnsOnly

Resolves this query using only the DNS protocol.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-DnssecCd

Sets the DNSSEC checking-disabled bit for this query.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-DnssecOk

Sets the DNSSEC OK bit for this query.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-LlmnrFallback

Allows falling back to the LLMNR protocol when resolving this query with DNS fails.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-LlmnrNetbiosOnly

Resolves this query using only the LLMNR or NetBIOS protocols.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-LlmnrOnly

Resolves this query using only the LLMNR protocol.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Name<String>

Specifies the name to be resolved.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-NetbiosFallback

Allows fallback to the NetBIOS protocol when resolving this query with DNS fails.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-NoHostsFile

Skips the hosts file when resolving this query.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-NoIdn

Specifies not to use IDN encoding logic for the query.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-NoRecursion

Instructs the server not to use recursion when resolving this query.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-QuickTimeout

Uses shorter timeouts for this query.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Server<String[]>

Specifies the IP addresses or host names of the DNS servers to be queried. By default the interface DNS servers are queried if this parameter is not supplied.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-TcpOnly

Uses only TCP for this query.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Type<RecordType>

Specifies the DNS query type that is to be issued. By default the type is A_AAAA, the A and AAAA types will both be queried. Los valores aceptables para este parámetro son los siguientes:
-- UNKNOWN = 0,
-- A_AAAA = 0, the DNS query type is A_AAAA.
-- A = 1, the DNS query type is IPv4 server Address.
-- AAAA = 28, the DNS query type is IPv6 server address.
-- NS = 2, the DNS query type is name server.
-- MX = 15, the DNS query type is mail routing information.
-- MD = 3, the DNS query type is mail destination.
-- MF = 4, the DNS query type is mail forwarder.
-- CNAME = 5, the DNS query type is canonical name.
-- SOA = 6, the DNS query type is start of authority zone.
-- MB = 7, the DNS query type is mailbox domain name.
-- MG = 8, the DNS query type is mail group member.
-- MR = 9, the DNS query type is mail rename name.
-- NULL = 10, the DNS query type is null resource record.
-- WKS = 11, the DNS query type is well known service.
-- PTR = 12, the DNS query type is domain name pointer.
-- HINFO = 13, the DNS query type is host information.
-- MINFO = 14, the DNS query type is mailbox information.
-- TXT = 16, the DNS query type is text strings.
-- RP = 17, the DNS query type is responsible person.
-- AFSDB = 18, the DNS query type is AFS database servers.
-- X25 = 19, the DNS query type is packet switched wide area network.
-- ISDN = 20, the DNS query type is Integrated Services Digital Network.
-- RT = 21, the DNS query type is DNS route through.
-- SRV = 33, the DNS query type is server selection.
-- DNAME = 39, the DNS query type is domain aliases.
-- OPT = 41, the DNS query type is DNS option.
-- DS = 43, the DNS query type is delegation signer.
-- RRSIG = 46, the DNS query type is DNSSEC signature.
-- NSEC = 47, the DNS query type is next-secure record.
-- DNSKEY = 48, the DNS query type is DNS key record.
-- DHCID = 49, the DNS query type is Dynamic Host Configuration Protocol information.
-- NSEC3 = 50, the DNS query type is NSEC record version 3.
-- NSEC3PARAM = 51, the DNS query type is NSEC3 parameters.
-- ANY = 255, the DNS query type is wildcard match.
-- ALL = 255, the DNS query type is wildcard match.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • None

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.DnsClient.Commands.DnsRecord

    The DnsRecord object contains all of the records returned from the wire for the specified DNS query.

Ejemplos

EXAMPLE 1

This example resolves a name using the default options.

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

EXAMPLE 2

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

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

EXAMPLE 3

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

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

EXAMPLE 4

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

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

Temas relacionados

Nslookup on TechNet