Show / Hide Table of Contents

Class Zone

Represents an authoritative DNS Zone.

Inheritance
Object
Zone
Implements
IEquatable<Zone>
Namespace: PowerDns.Client.Models
Assembly: PowerDns.Client.dll
Syntax
public class Zone : Object

Constructors

Zone()

Declaration
public Zone()

Zone(CanonicalName, CanonicalName[])

Declaration
public Zone(CanonicalName name, params CanonicalName[] nameservers)
Parameters
Type Name Description
CanonicalName name
CanonicalName[] nameservers

Zone(CanonicalName, IEnumerable<CanonicalName>)

Declaration
public Zone(CanonicalName name, IEnumerable<CanonicalName> nameservers)
Parameters
Type Name Description
CanonicalName name
IEnumerable<CanonicalName> nameservers

Properties

Id

Opaque zone id (string), assigned by the server, should not be interpreted by the application. Guaranteed to be safe for embedding in URLs.

Declaration
public string Id { get; set; }
Property Value
Type Description
String

Kind

Zone kind.

Declaration
public ZoneKind Kind { get; set; }
Property Value
Type Description
ZoneKind

Name

Name of the zone (e.g. “example.com.”).

Declaration
public CanonicalName Name { get; set; }
Property Value
Type Description
CanonicalName

Nameservers

Simple list of nameserver names, including the trailing dot. Not required for slave zones.

Declaration
public List<CanonicalName> Nameservers { get; set; }
Property Value
Type Description
List<CanonicalName>

RecordSets

Resource records in this zone.

Declaration
public List<RecordSet> RecordSets { get; set; }
Property Value
Type Description
List<RecordSet>

Serial

The SOA serial number.

Declaration
public Nullable<int> Serial { get; set; }
Property Value
Type Description
Nullable<Int32>

Type

Is always "Zone".

Declaration
public string Type { get; }
Property Value
Type Description
String

Url

API endpoint for this zone.

Declaration
public string Url { get; set; }
Property Value
Type Description
String

Methods

Equals(Zone)

Declaration
public bool Equals(Zone other)
Parameters
Type Name Description
Zone other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

Implements

System.IEquatable<T>
In This Article
Back to top Copyright Bastian Eicher