Get-DnsServerResourceRecord

Letzte Aktualisierung: Mai 2015

Get-DnsServerResourceRecord

Gets resource records from a specified DNS zone.

Syntax

Parameter Set: Name
Get-DnsServerResourceRecord [-ZoneName] <System.String> [[-Name] <System.String> ] [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ComputerName <System.String> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-Node] [-RRType <System.String> {HInfo | Afsdb | Atma | Isdn | Key | Mb | Md | Mf | Mg | MInfo | Mr | Mx | NsNxt | Rp | Rt | Wks | X25 | A | AAAA | CName | Ptr | Srv | Txt | Wins | WinsR | Ns | Soa | NasP | NasPtr | DName | Gpos | Loc | DhcId | Naptr | RRSig | DnsKey | DS | NSec | NSec3 | NSec3Param | Tlsa} ] [-ThrottleLimit <System.Int32> ] [-ZoneScope <System.String> ] [ <CommonParameters>] [ <WorkflowParameters>]

Parameter Set: Unknown
Get-DnsServerResourceRecord [-ZoneName] <System.String> [[-Name] <System.String> ] [-Type] <System.UInt16> [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ComputerName <System.String> ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [-Node] [-ThrottleLimit <System.Int32> ] [-ZoneScope <System.String> ] [ <CommonParameters>] [ <WorkflowParameters>]

Detaillierte Beschreibung

The Get-DnsServerResourceRecord cmdlet gets the following information for a specified resource record from a Domain Name System (DNS) zone:

-- HostName
-- RecordType
-- RecordClass
-- TimeToLive
-- Timestamp
-- RecordData

Parameter

-CimSession<Microsoft.Management.Infrastructure.CimSession[]>

Das Cmdlet wird in einer Remotesitzung oder auf einem Remotecomputer ausgeführt. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, wie z. B. die Ausgabe eines New-CimSession oder Get-CimSession-Cmdlets. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.

Aliase

Session

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-ComputerName<System.String>

Specifies a DNS server. If you do not specify this parameter, the command runs on the local system. You can specify an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.

Aliase

Cn,ForwardLookupPrimaryServer

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-InformationAction<System.Management.Automation.ActionPreference>

Aliase

infa

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-InformationVariable<System.String>

Aliase

iv

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Name<System.String>

Specifies a node name within the selected zone. If not specified, it defaults to the root (@) node.

Aliase

none

Erforderlich?

false

Position?

3

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-Node

Indicates that the command returns only the resource records at the root of the node specified by the Name parameter. If Node is not specified then both the root and any child records in the node are returned.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-RRType<System.String>

Specifies the type of resource record.

Die zulässigen Werte für diesen Parameter sind:

-- HInfo
-- Afsdb
-- Atma
-- Isdn
-- Key
-- Mb
-- Md
-- Mf
-- Mg
-- MInfo
-- Mr
-- Mx
-- NsNxt
-- Rp
-- Rt
-- Wks
-- X25
-- A
-- AAAA
-- CName
-- Ptr
-- Srv
-- Txt
-- Wins
-- WinsR
-- Ns
-- Soa
-- NasP
-- NasPtr
-- DName
-- Gpos
-- Loc
-- DhcId
-- Naptr
-- RRSig
-- DnsKey
-- DS
-- NSec
-- NSec3
-- NSec3Param

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-ThrottleLimit<System.Int32>

Gibt die maximale Anzahl gleichzeitiger Vorgänge an, die zum Ausführen des Cmdlets hergestellt werden können. Wenn dieser Parameter ausgelassen wird oder der Wert 0 eingegeben wird, berechnet Windows PowerShell ® einen optimalen Drosselungsgrenzwert für das Cmdlet basierend auf der Anzahl der CIM-Cmdlets, die auf dem Computer ausgeführt werden. Der Grenzwert gilt nur für das aktuelle Cmdlet, nicht für die Sitzung oder den Computer.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Type<System.UInt16>

Specifies a type of record to get.

Aliase

none

Erforderlich?

true

Position?

4

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-ZoneName<System.String>

Specifies the name of a DNS server zone.

Aliase

ForwardLookupZone

Erforderlich?

true

Position?

2

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-ZoneScope<System.String>

Specifies the name of a zone scope.

Aliase

none

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

true(ByPropertyName)

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

<WorkflowParameters>

Eingaben

Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

Example 1: Get all resource records in a specified zone

This command gets all DNS server resource records in a zone named contoso.com.

PS C:\> Get-DnsServerResourceRecord -ZoneName "contoso.com"

Example 2: Get all resource records in a zone for a specified node

This command gets all DNS server resource records in a zone named contoso.com from the node named Admin01.

PS C:\> Get-DnsServerResourceRecord -ZoneName "contoso.com" -Name "Admin01"

Example 3: Get all resource records in a zone by specified host name

This command gets all DNS server resource records in a zone named contoso.com that have the name Host02. The command is similar to the one in example 2, but in this case the command uses a host name instead of a node name.

PS C:\> Get-DnsServerResourceRecord -ZoneName "contoso.com" -Name "Host02"

Example 4: Get all A records in a zone by specified host and specified type

This command gets all A records in a zone named contoso.com that have the name Host03.

PS C:\> Get-DnsServerResourceRecord -ZoneName "contoso.com" -Name "Host03" -RRType "A"

Example 5: Get all A records in a specified zone

This command gets all A records in a zone named contoso.com.

PS C:\> Get-DnsServerResourceRecord -ZoneName "contoso.com" -RRType "A"

Example 6: Get all NS records at the root of a specified zone

This command gets all NS records at the root of a zone named contoso.com.

PS C:\> Get-DnsServerResourceRecord -ZoneName "contoso.com" -RRType "NS" -Node

Verwandte Themen

Set-DnsServerResourceRecord

Add-DnsServerResourceRecord

Remove-DnsServerResourceRecord