Skip to content

ZoneRecordProps

Properties for defining a ZoneRecord.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pvtz-zonerecord

Initializer

using AlibabaCloud.SDK.ROS.CDK.Pvtz;
new ZoneRecordProps {
    object Rr,
    object Status,
    object Type,
    object Value,
    object ZoneId,
    object Priority = null,
    object Ttl = null
};

Properties

Name Type Description
Rr object Property rr: The host record.
Status object Property status: The status of the DNS record.
Type object Property type: The type of the DNS record.
Value object Property value: Record value.
ZoneId object Property zoneId: Zone Id.
Priority object Property priority: The priority of the MX record.
Ttl object Property ttl: The time to live (TTL).

RrRequired

public object Rr { get; set; }
  • Type: object

Property rr: The host record.

A host record is the prefix of a domain name. Common host records include www, @, * (for wildcard DNS), and mail (for mailboxes). For example, to resolve @.example.com, set the host record to "@", not an empty string.


StatusRequired

public object Status { get; set; }
  • Type: object

Property status: The status of the DNS record.

Valid values:

  • ENABLE: Enables DNS resolution.
  • DISABLE: Pauses DNS resolution.

TypeRequired

public object Type { get; set; }
  • Type: object

Property type: The type of the DNS record.

The following types are supported:

  • A: Maps a domain name to an IPv4 address in dotted decimal notation.
  • AAAA: Maps a domain name to an IPv6 address.
  • CNAME: Maps a domain name to another domain name.
  • TXT: A text record. The text can be up to 255 characters in length. TXT records are often used for Sender Policy Framework (SPF) records to prevent spam.
  • MX: Maps a domain name to the domain name of a mail server.
  • PTR: Maps an IP address to a domain name.
  • SRV: Specifies the server for a specific service. The format is: Priority Weight Port Target. Separate each value with a space.

Before adding a PTR record, configure a reverse lookup zone. For more information, see Reverse DNS lookups and PTR records.


ValueRequired

public object Value { get; set; }
  • Type: object

Property value: Record value.


ZoneIdRequired

public object ZoneId { get; set; }
  • Type: object

Property zoneId: Zone Id.


PriorityOptional

public object Priority { get; set; }
  • Type: object

Property priority: The priority of the MX record.

A smaller value indicates a higher priority. Valid values: [1, 99].


TtlOptional

public object Ttl { get; set; }
  • Type: object

Property ttl: The time to live (TTL).

The unit is seconds (s). Valid values are 5, 30, 60, 3600 (1 hour), 43200 (12 hours), and 86400 (1 day). The default value is 60.