DnsServerDiagnostics class

Represents event logging details for 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 DnsServerDiagnostics
{
  uint32  EventLogLevel;
  string  LogFilePath;
  uint32  MaxMBFileSize;
  string  FilterIPAddressList[];
  boolean UseSystemEventLog;
  boolean Answers;
  boolean Notifications;
  boolean Queries;
  boolean QuestionTransactions;
  boolean ReceivePackets;
  boolean SendPackets;
  boolean TcpPackets;
  boolean UdpPackets;
  boolean Update;
  boolean FullPackets;
  boolean UnmatchedResponse;
  boolean WriteThrough;
  boolean SaveLogsToPersistentStorage;
  boolean EnableLoggingToFile;
  boolean EnableLogFileRollover;
  boolean EnableLoggingForServerStartStopEvent;
  boolean EnableLoggingForZoneLoadingEvent;
  boolean EnableLoggingForZoneDataWriteEvent;
  boolean EnableLoggingForLocalLookupEvent;
  boolean EnableLoggingForTombstoneEvent;
  boolean EnableLoggingForRecursiveLookupEvent;
  boolean EnableLoggingForRemoteServerEvent;
  boolean EnableLoggingForPluginDllEvent;
};

Members

The DnsServerDiagnostics class has these types of members:

Properties

The DnsServerDiagnostics class has these properties.

Answers

Data type: boolean

Access type: Read/write

True to enable logging of authoritative answers; otherwise, false.

EnableLogFileRollover

Data type: boolean

Access type: Read/write

True to enable logging of a file rollover operation; otherwise, false.

EnableLoggingForLocalLookupEvent

Data type: boolean

Access type: Read/write

True to enable logging of a local lookup event; otherwise, false.

EnableLoggingForPluginDllEvent

Data type: boolean

Access type: Read/write

True to enable logging of a plugin DLL event; otherwise, false.

EnableLoggingForRecursiveLookupEvent

Data type: boolean

Access type: Read/write

True to enable logging of a recursive lookup event; otherwise, false.

EnableLoggingForRemoteServerEvent

Data type: boolean

Access type: Read/write

True to enable logging of a remote server event; otherwise, false.

EnableLoggingForServerStartStopEvent

Data type: boolean

Access type: Read/write

True to enable logging of an event triggered when the DNS server starts or stops; otherwise, false.

EnableLoggingForTombstoneEvent

Data type: boolean

Access type: Read/write

True to enable logging of a tombstone event; otherwise, false.

EnableLoggingForZoneDataWriteEvent

Data type: boolean

Access type: Read/write

True to enable logging of a write operation for zone data; otherwise, false.

EnableLoggingForZoneLoadingEvent

Data type: boolean

Access type: Read/write

True to enable logging of a loading event in the zone; otherwise, false.

EnableLoggingToFile

Data type: boolean

Access type: Read/write

True to save logs to a log file; otherwise, false.

EventLogLevel

Data type: uint32

Access type: Read/write

An integer that indicates the event type.

Warning (1)

Error (2)

Warning and Error (3)

None (4)

FilterIPAddressList

Data type: string array

Access type: Read/write

An array that contains the IP addresses to filter.

FullPackets

Data type: boolean

Access type: Read/write

True to enable the full packet diagnostic; otherwise, false.

LogFilePath

Data type: string

Access type: Read/write

The full path to the log file.

MaxMBFileSize

Data type: uint32

Access type: Read/write

The maximum size of the log file, in megabytes.

Notifications

Data type: boolean

Access type: Read/write

True to enable the notifications diagnostic; otherwise, false.

Queries

Data type: boolean

Access type: Read/write

True to enable the queries diagnostic; otherwise, false.

QuestionTransactions

Data type: boolean

Access type: Read/write

True to enable the question transactions diagnostic; otherwise, false.

ReceivePackets

Data type: boolean

Access type: Read/write

True to enable the incoming packet diagnostic; otherwise, false.

SaveLogsToPersistentStorage

Data type: boolean

Access type: Read/write

True to save logs in persistent storage; otherwise, false.

SendPackets

Data type: boolean

Access type: Read/write

True to enable the outgoing packet diagnostic; otherwise, false.

TcpPackets

Data type: boolean

Access type: Read/write

True to enable the TCP packet diagnostic; otherwise, false.

UdpPackets

Data type: boolean

Access type: Read/write

True to enable the UDP packet diagnostic; otherwise, false.

UnmatchedResponse

Data type: boolean

Access type: Read/write

True to enable the unmatched response diagnostic; otherwise, false.

Update

Data type: boolean

Access type: Read/write

True to enable the update diagnostic; otherwise, false.

UseSystemEventLog

Data type: boolean

Access type: Read/write

True to write event logs to the local repository; otherwise, false.

WriteThrough

Data type: boolean

Access type: Read/write

True to enable the write through diagnostic; otherwise, false.

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

DnsServerPSProvider Provider