Microsoft Windows Server DNS 組態檔警告

Microsoft.Windows.Server.DNS.Configuration.FileWarning (Rule)

組態的警示產生規則。

Knowledge Base article:

摘要

DNS 伺服器組態由設定組成,這些設定決定 DNS 伺服器如何在網路上運作,以及如何在需要時儲存與擷取它們。

原因

DNS 伺服器的組態檔發生錯誤。

解決方式

修正組態檔

若要修正組態檔,請使用文字編輯器 (例如 [記事本]) 來開啟指示的檔案 (位於 %SystemRoot%\System32\Dns)。然後修正警告或錯誤事件訊息中指定的行,再重新啟動 DNS 伺服器。

在變更組態檔前,請先將檔案備份,以防需將檔案還原成舊版。

若要執行此程序,您必須有 Administrators 的成員資格,或者必須已被委派適當的權限。

若要重新啟動 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.Server.DNS.Server
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Windows DNS - 組態檔警告
事件識別碼: {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.Server.DNS.Configuration.FileWarning" Enabled="true" Target="Microsoft.Windows.Server.DNS.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.Server.DNS.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>