MicrosoftDNS_Zone 类的 CreateZone 方法
CreateZone 方法创建 DNS 区域。
语法
void CreateZone(
[in] string ZoneName,
[in] uint32 ZoneType,
[in] boolean DsIntegrated,
[in, optional] string DataFileName,
[in, optional] string IpAddr[],
[in, optional] string AdminEmailName,
[out, ref] MicrosoftDns_Zone &RR
);
参数
-
ZoneName [in]
-
表示区域名称的字符串。
-
ZoneType [in]
-
区域类型。 有效值如下:
值 含义 - 1
AD 集成。 - 2
辅助区域。 - 3
存根区域。
Windows Server 2003: 此区域类型在 Windows Server 2003 中引入。- 4
区域转发器。
Windows Server 2003: 此区域类型在 Windows Server 2003 中引入。 -
DsIntegrated [in]
-
指示区域数据是存储在 Active Directory 中还是存储在文件中。 如果为 TRUE,则数据存储在 Active Directory 中;如果为 FALSE,则数据存储在文件中。
-
DataFileName [in, optional]
-
与区域关联的数据文件的名称。
-
IpAddr [in, 可选]
-
区域的主 DNS 服务器的 IP 地址。
-
AdminEmailName [in, optional]
-
Email负责区域的管理员的地址。
-
RR [out, ref]
-
MicrosoftDns_Zone 类型的 RR。
返回值
此方法不返回值。
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
无受支持的版本 |
最低受支持的服务器 |
Windows 2000 Server [仅限桌面应用] |
命名空间 |
Root\MicrosoftDNS |
MOF |
|
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈