Partager via


DnsServerStubZone class

Manages a stub zone on a DNS server.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[ClassVersion("1.0.0"), dynamic, provider("DnsServerPSProvider"), AMENDMENT]
class DnsServerStubZone : DnsServerZone
{
  string   DistinguishedName;
  string   ZoneName;
  string   ZoneType;
  boolean  IsPaused;
  boolean  IsDsIntegrated;
  boolean  IsAutoCreated;
  boolean  IsReverseLookupZone;
  boolean  IsReadOnly;
  boolean  IsShutdown;
  string   DirectoryPartitionName;
  string   ReplicationScope;
  string   ZoneFile;
  string   MasterServers[];
  string   LocalMasters[];
  datetime LastSuccessfulSoaCheck;
  datetime LastZoneTransferAttempt;
  datetime LastSuccessfulZoneTransfer;
  uint32   LastZoneTransferResult;
};

Members

The DnsServerStubZone class has these types of members:

Properties

The DnsServerStubZone class has these properties.

DirectoryPartitionName

Data type: string

Access type: Read/write

The name of the directory partition for the zone.

DistinguishedName

Data type: string

Access type: Read-only

The Lightweight Directory Access Protocol (LDAP) name of the domain.

This property is inherited from DnsDomain.

IsAutoCreated

Data type: boolean

Access type: Read-only

true if the zone is automatically created; otherwise, false.

This property is inherited from DnsServerZone.

IsDsIntegrated

Data type: boolean

Access type: Read-only

true if the zone is integrated with Active Directory; otherwise, false.

This property is inherited from DnsServerZone.

IsPaused

Data type: boolean

Access type: Read-only

true if the zone is paused; otherwise, false.

This property is inherited from DnsServerZone.

IsReadOnly

Data type: boolean

Access type: Read-only

true if the zone is read-only; otherwise, false.

This property is inherited from DnsServerZone.

IsReverseLookupZone

Data type: boolean

Access type: Read-only

true if the zone is a reverse lookup zone; otherwise, false.

This property is inherited from DnsServerZone.

IsShutdown

Data type: boolean

Access type: Read-only

true if the zone is shutdown; otherwise, false.

This property is inherited from DnsServerZone.

LastSuccessfulSoaCheck

Data type: datetime

Access type: Read-only

The time of the last SOA check for the zone.

LastSuccessfulZoneTransfer

Data type: datetime

Access type: Read-only

The time of the last successful zone transfer for the zone.

LastZoneTransferAttempt

Data type: datetime

Access type: Read-only

The time of the last zone transfer for the zone.

LastZoneTransferResult

Data type: uint32

Access type: Read-only

The result of the last successful zone transfer operation

LocalMasters

Data type: string array

Access type: Read/write

An array that contains identifiers of the local master name servers for the zone.

MasterServers

Data type: string array

Access type: Read/write

An array that contains identifiers of the master name servers for the zone.

ReplicationScope

Data type: string

Access type: Read/write

Indicates the replication scope of the zone.

The possible values are.

Forest ("Forest")

Domain ("Domain")

Legacy ("Legacy")

Custom ("Custom")

ZoneFile

Data type: string

Access type: Read/write

The zone file path.

ZoneName

Data type: string

Access type: Read/write

The name of the zone.

This property is inherited from DnsServerZone.

ZoneType

Data type: string

Access type: Read-only

The zone type.

This property is inherited from DnsServerZone.

The possible values are.

Cache ("Cache")

Primary ("Primary")

Secondary ("Secondary")

Stub ("Stub")

Forwarder ("Forwarder")

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Dns
MOF
DnsServerPSProvider.mof
DLL
DnsServerPSProvider.dll

See also

DnsServerZone

DnsServerPSProvider Provider