Microsoft Windows Server DNS 服务器日志记录级别

Microsoft.Windows.DNSServer.2016.Server.LoggingLevel (UnitMonitor)

当配置 DNS 服务器用于完整日志记录时,此管理包最有效。

Knowledge Base article:

摘要

DNS 服务器服务响应来自 DNS 客户端计算机对名称解析服务的请求。域名系统 (DNS) 是一项协议,利用该协议,计算机通过向 DNS 服务器提交目标计算机的名称,即可获得另一台计算机的数字 IP 地址。DNS 服务器服务的问题会导致网络性能下降,甚至会阻止网络计算机之间相互定位。

原因

DNS 服务器未配置为记录所有事件。

0 = 不记录事件。

1 = 仅记录错误。

2 = 记录错误和警告。

4 或 7 – 记录所有事件。

要使此管理包功能达到最佳效果,建议将 DNS 服务器配置为记录所有事件。

解决方法

在 DNS 管理控制台中的服务器属性对话框的“事件日志”选项卡上设置“事件日志记录级别”。

Element properties:

TargetMicrosoft.Windows.DNSServer.2016.Server
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.DNSServer.2016.ServerLoggingLevel.Monitor
RemotableTrue
AccessibilityPublic
Alert Message
Windows DNS - 服务器日志记录级别为“不完全”
请参阅运行状况资源管理器以了解详细信息。
RunAsMicrosoft.Windows.DNSServer.2016.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DNSServer.2016.Server.LoggingLevel" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DNSServer.2016.Server" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" RunAs="Microsoft.Windows.DNSServer.2016.ActionAccount" TypeID="Microsoft.Windows.DNSServer.2016.ServerLoggingLevel.Monitor" ConfirmDelivery="true">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DNSServer.2016.Server.LoggingLevel_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId898ac315d34142ef8f4af1b9f2ecb9d6" MonitorTypeStateID="None" HealthState="Error"/>
<OperationalState ID="UIGeneratedOpStateId9231e25fc6c340c7b6733e906fec3e31" MonitorTypeStateID="Partial" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateId18b7d015af144b79a14166376418b408" MonitorTypeStateID="Full" HealthState="Success"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>921</IntervalSeconds>
</Configuration>
</UnitMonitor>