Microsoft Windows Server DNS 配置文件警告

Microsoft.Windows.DNSServer.2016.Configuration.FileWarning (Rule)

配置的警报生成规则。

Knowledge Base article:

摘要

DNS 服务器配置不仅包含用于确定 DNS 服务器将如何在网络上工作的设置,而且还可指定如何存储这些设置以及在需要它们时如何检索这些设置。

原因

DNS 服务器在配置文件中遇到错误。

解决方法

更正配置文件

若要更正配置文件,请使用文本编辑器(如“记事本”)打开指定的文件,该文件位于 %SystemRoot%\System32\Dns 中。更正警告或错误事件消息中指定的行,然后重新启动 DNS 服务器。

在更改配置文件之前,请创建文件的副本,以防有必要将文件恢复到以前的版本。

要执行此过程,必须拥有“管理员”成员身份,或者已向你委派了适当的权限。

若要重新启动 DNS 服务器,请执行以下操作:

1.在 DNS 服务器上,启动服务器管理器。若要启动服务器管理器,请依次单击“开始”、“管理工具”和“服务器管理器”。

2.在控制台树中,依次展开“角色”、“DNS 服务器”和“DNS”。

3.右键单击 DNS 服务器,单击“所有任务”,然后单击“重新启动”。

注意:出现此问题的原因可能是,此前在尝试手动编辑该配置文件的过程中将错误引入了配置文件。为了避免以后出现类似的问题,请使用服务器管理器或 dnscmd 命令来修改配置文件。

外部

http://technet.microsoft.com/en-us/library/dd349648(v=ws.10).aspx

Element properties:

TargetMicrosoft.Windows.DNSServer.2016.Server
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Windows DNS - 配置文件警告

事件 ID:{0}
事件源:{1}
事件日志:{2}
事件说明:{3}
Event LogDNS Server

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Windows.DNSServer.2016.Configuration.FileWarning" Enabled="true" Target="Microsoft.Windows.DNSServer.2016.Server" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>DNS Server</LogName>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1202|1502|1503|1504|1506|1507|1508|1520|1521|1522|1523|1541|1542|1543|1544|1545|1546|1547|1600|1601|1602|1610|1611|1612|1613|1614|1616|1617|1618|1619|1620|1621|1650|1651|1654|1656|3160|3162|3163|5105|5106|5107|5108|6530|6531|6532)$</Pattern>
</RegExExpression>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.DNSServer.2016.Configuration.FileWarning.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDisplayNumber$</AlertParameter1>
<AlertParameter2>$Data/EventSourceName$</AlertParameter2>
<AlertParameter3>$Data/Channel$</AlertParameter3>
<AlertParameter4>$Data/EventDescription$</AlertParameter4>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>