DnsServerCache class

Represents the settings of a DNS server cache.

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 DnsServerCache : DnsServerZone
{
  string   DistinguishedName;
  string   ZoneName;
  string   ZoneType;
  boolean  IsPaused;
  boolean  IsDsIntegrated;
  boolean  IsAutoCreated;
  boolean  IsReverseLookupZone;
  boolean  IsReadOnly;
  boolean  IsShutdown;
  datetime MaxTtl;
  datetime MaxNegativeTtl;
  uint32   MaxKBSize;
  boolean  EnablePollutionProtection;
  boolean  StoreEmptyAuthenticationResponse;
  uint32   LockingPercent;
  boolean  IgnorePolicies;
};

Members

The DnsServerCache class has these types of members:

Properties

The DnsServerCache class has these properties.

DistinguishedName
Data type: string
Access type: Read-only

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

This property is inherited from DnsDomain.

EnablePollutionProtection
Data type: boolean
Access type: Read/write

True to enable protection against cache pollution; otherwise, false.

IgnorePolicies
Data type: boolean
Access type: Read-only

True to ignore the policies of the cache; otherwise, false.

Windows Server 2012 R2 and Windows Server 2012:  Not supported.

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.

LockingPercent
Data type: uint32
Access type: Read-only

The percentage of the maximum TTL for the cache, after which DNS cache locking is enabled. Cache locking allows you to control whether information in the DNS cache can be overwritten.

MaxKBSize
Data type: uint32
Access type: Read/write

The maximum size of the cache, in bytes.

MaxNegativeTtl
Data type: datetime
Access type: Read/write

The maximum TTL duration in which the cache can cache negative responses.

MaxTtl
Data type: datetime
Access type: Read/write

A timespan that specifies the time to live (TTL) of the cache.

StoreEmptyAuthenticationResponse
Data type: boolean
Access type: Read/write

True to store empty authentication responses in the cache; otherwise, false.

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.

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

 

 

Show: