Microsoft Windows Server DNS Forwarder Conditional Forward Localhost NSLookup

Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward.Localhost.NSLookup (UnitMonitor)

Testing the forwarder using NSLookup performed against localhost.

Knowledge Base article:

Summary

This monitor checks for Windows Server DNS Conditional Fowarder based on NSLookUp.

Configuration

Interval Seconds: The interval at which this monitor performs a NSLOOKUP.

Script Timeout Seconds: The total time SCOM will allow the script to run before terminating it.

Query Timeout Seconds: Used for the -timeout option of NSLOOKUP.

Query Type: Used for the -querytype option of NSLOOKUP. Acceptable values are: A, CNAME, PTR, NS, or SOA.

Host Name: The host record to be resolved by NSLOOKUP.

Server: The server to which NSLOOKUP should direct the query.

Accept Non Authoritative: Whether or not SCOM should accept a Non-authoritative response to NSLOOKUP.

Element properties:

TargetMicrosoft.Windows.Server.DNS.Forwarder.Conditional.Forward
Parent MonitorMicrosoft.Windows.Server.DNS.Forwarder.Conditional.Forward.NSLookup
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.DNS.NSLookup.Monitor
RemotableTrue
AccessibilityPublic
RunAsMicrosoft.Windows.Server.DNS.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward.Localhost.NSLookup" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward" ParentMonitorID="Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward.NSLookup" Remotable="true" Priority="Normal" RunAs="Microsoft.Windows.Server.DNS.ActionAccount" TypeID="Microsoft.Windows.Server.DNS.NSLookup.Monitor" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId13f01508a0204607a7aaf3a7195b5969" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIdefdf65ea527348e9909a847cdd94f616" MonitorTypeStateID="InternalScriptError" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateIdcc389f5ae1404a8ebb753daeb7879874" MonitorTypeStateID="QueryFailure" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>904</IntervalSeconds>
<ScriptTimeoutSeconds>300</ScriptTimeoutSeconds>
<QueryTimeoutSeconds>10</QueryTimeoutSeconds>
<QueryType>A</QueryType>
<HostName>$Target/Property[Type="Microsoft.Windows.Server.DNS.Forwarder"]/DomainName$.</HostName>
<Server>127.0.0.1</Server>
<AcceptNonAuthoritative>true</AcceptNonAuthoritative>
</Configuration>
</UnitMonitor>