3.1.4.25 ValidateBaseDnsServerZone
The ValidateBaseDnsServerZone event captures the common validation rules for the BaseDnsServerZone instance. The rest of the section assumes the BaseDnsServerZone instance to be validated is passed as a parameter with the name Param_baseDnsServerZone.
The following validations MUST pass for the BaseDnsServerZone instance to be valid:
Param_baseDnsServerZone.ZoneType is not ZoneHostingDnsServerType.None.
Param_baseDnsServerZone.ZoneConfiguration is not ZoneConfiguration.None.
If Param_baseDnsServerZone.ZoneConfiguration is ZoneConfiguration.ADIntegrated, then check that Param_baseDnsServerZone.ReplicationScope is not NULL or a whitespace.
If Param_baseDnsServerZone.ZoneConfiguration is ZoneConfiguration.FileBacked, then check that Param_baseDnsServerZone.ZoneFileName is not NULL or a whitespace.
If Param_baseDnsServerZone.ZoneType is ZoneHostingDnsServerType.Primary, then check the following:
Param_baseDnsServerZone.MasterServers.Count is equal to 0.
If Param_baseDnsServerZone.ZoneConfiguration is ZoneConfiguration.ADIntegrated, then check that Param_baseDnsServerZone.ZoneFileName is NULL or a whitespace.
If Param_baseDnsServerZone.ZoneConfiguration is ZoneConfiguration.FileBacked, then check that Param_baseDnsServerZone.ReplicationScope is NULL or a whitespace.
If Param_baseDnsServerZone.ZoneType is ZoneHostingDnsServerType.Secondary, then check the following:
Param_baseDnsServerZone.ZoneFileName is not NULL or a whitespace.
Param_baseDnsServerZone.ZoneConfiguration is not ZoneConfiguration.ADIntegrated.
Param_baseDnsServerZone.DirectoryPartitionName is either NULL or a whitespace.
Param_baseDnsServerZone.ReplicationScope is either NULL or a whitespace.
If Param_baseDnsServerZone.ZoneType is ZoneHostingDnsServerType.Secondary or ZoneHostingDnsServerType.Stub, then check the following:
Param_baseDnsServerZone.MasterServers.Count is greater than 0.
Param_baseDnsServerZone.NotifySecondaries is DnsNotifySecondariesSetting.None.
Param_baseDnsServerZone.NotifyServers.Count is equal to 0.
Param_baseDnsServerZone.SecureSecondaries is DnsSecureSecondariesSetting.None.
Param_baseDnsServerZone.SecondaryServers.Count is equal to 0.