DnsServerPolicy class

Contains the DNS server policy.

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 DnsServerPolicy
{
  string                  Name;
  string                  Level;
  string                  AppliesOn;
  string                  Action;
  string                  Condition;
  boolean                 IsEnabled;
  uint32                  ProcessingOrder;
  string                  ZoneName;
  DnsServerPolicyCriteria Criteria[];
  DnsServerPolicyContent  Content[];
};

Members

The DnsServerPolicy class has these types of members:

Properties

The DnsServerPolicy class has these properties.

Action

Data type: string

Access type: Read/write

The action of the policy.

The possible values are.

Deny ("Deny")

Allow ("Allow")

Ignore ("Ignore")

AppliesOn

Data type: string

Access type: Read/write

Applies on.

The possible values are.

QueryProcessing ("QueryProcessing")

Query processing.

ZoneTransfer ("ZoneTransfer")

Zone transfer.

DynamicUpdate ("DynamicUpdate")

Dynamic update.

Recursion ("Recursion")

Recursion.

Condition

Data type: string

Access type: Read/write

The condition of the policy.

The possible values are.

And ("And")

Or ("Or")

Content

Data type: DnsServerPolicyContent array

Access type: Read/write

Qualifiers: EmbeddedInstance ("DnsServerPolicyContent")

An array of DnsServerPolicyContent containing DNS server policy content.

Criteria

Data type: DnsServerPolicyCriteria array

Access type: Read/write

Qualifiers: EmbeddedInstance ("DnsServerPolicyCriteria")

An array of DnsServerPolicyCriteria containing the DNS server policy criteria.

IsEnabled

Data type: boolean

Access type: Read/write

Is enabled.

Level

Data type: string

Access type: Read/write

The level of the policy.

The possible values are.

Server ("Server")

The policy applies to a single server.

Zone ("Zone")

The policy applies to a zone.

Name

Data type: string

Access type: Read/write

The name of the policy.

ProcessingOrder

Data type: uint32

Access type: Read/write

The processing order.

ZoneName

Data type: string

Access type: Read/write

The name of the zone.

Requirements

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

See also

DnsServerPSProvider Provider