Creates a new DNS zone containing a SOA-record and a single NS-record for the primary DNS server.
Namespace:
JHSoftware.SimpleDNSPlusAssembly: SDNSAPI (in SDNSAPI)
Version: 1.1.0.0 (1.1.0.0)
Syntax
| C# |
|---|
public DNSZone CreateZone( string zoneName, string primaryNS, string rPerson ) |
| Visual Basic (Declaration) |
|---|
Public Function CreateZone ( _ zoneName As String, _ primaryNS As String, _ rPerson As String _ ) As DNSZone |
Parameters
- zoneName
- Type: System..::.String
The name (FQDN) of the new zone. The name may contain non-english characters in which case it will automatically be punycode encoded.
- primaryNS
- Type: System..::.String
The name (FQDN) of the primary DNS server for this zone The name may contain non-english characters in which case it will automatically be punycode encoded.
- rPerson
- Type: System..::.String
The e-mail address of the person responsible for this zone
Return Value
The new DNSZone object
Remarks
This method will create a new primary zone.
To create a new secondary zone, first create the zone using the function, and then set the DNSZone.PrimaryIP property to the IP address of the secondary server. This will convert it to a secondary zone.
IMPORTANT: The new zone is not actually created in Simple DNS Plus until it is updated using the Connection.UpdateZone method.