Microsoft Windows Server DNS 配置 SingleLabelHostname

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

配置的警报生成规则。

Knowledge Base article:

摘要

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

原因

当前,DNS 服务器计算机没有任何 DNS 域名。它的 DNS 名称为单一标签主机名,没有任何域。

解决方案

为 DNS 服务器提供完全限定域名

DNS 服务器必须配置完全限定的域名 (FQDN) 才能正常运行。而此计算机配置的是单标签名称。

要执行此过程,您必须拥有 Administrators 成员身份,或者您必须被委派了适当的权限。

若要授予 DNS 服务器一个 FQDN,请执行以下操作:

1.在 DNS 服务器上,启动服务器管理器。若要启动“服务器管理器”,请单击“开始”,指向“管理工具”,然后单击“服务器管理器”。

2.单击“更改系统属性”。

3.在“计算机名称”选项卡上,单击“更改”。

4.在“计算机名/域更改”中,单击“更多”。

5.在此计算机的“主 DNS 后缀”中,键入该计算机的主域名系统 (DNS) 后缀(主机名后面计算机的 FQDN 的一部分),然后单击“确定”。

6.单击“确定”,然后单击“关闭”以关闭所有对话框。

7.重新启动计算机以使更改生效。若要重新启动计算机,请单击“启动”,单击“锁定”按钮旁边的箭头,然后单击“重新启动”。

重新启动计算机后,DNS 服务器将尝试修复默认记录,用此服务器的新 DNS 名称替换单标签名称。但要确保现在每个区域的授权机构起始 (SOA) 和名称服务器 (NS) 资源记录都使用此服务器的正确域名。

若要查看授权区域起始 (SOA) 和名称服务器 (NS) 资源记录,请执行以下操作:

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

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

3.对于每个区域,展开包含该区域的区域文件夹,展开区域,然后单击“属性”。

4.若要查看授权机构起始 (SOA) 资源记录,请单击“授权机构起始 (SOA)”选项卡。

5.若要查看名称服务器 (NS) 资源记录,请单击“名称服务器”选项卡。

可以将计算机加入 Windows 域,而不是直接指定主 DNS 后缀。然后,将 Windows 域的 DNS 名称用作服务器名称的主 DNS 后缀。

外部

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

Element properties:

TargetMicrosoft.Windows.Server.DNS.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.Server.DNS.Configuration.SingleLabelHostname" 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>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">414</Value>
</ValueExpression>
</SimpleExpression>
</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.SingleLabelHostname.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDisplayNumber$</AlertParameter1>
<AlertParameter2>$Data/EventSourceName$</AlertParameter2>
<AlertParameter3>$Data/Channel$</AlertParameter3>
<AlertParameter4>$Data/EventDescription$</AlertParameter4>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>