ZoneRecordProps
Properties for defining a ZoneRecord.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pvtz-zonerecord
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpvtz"
&alicloudroscdkpvtz.ZoneRecordProps {
Rr: interface{},
Status: interface{},
Type: interface{},
Value: interface{},
ZoneId: interface{},
Priority: interface{},
Ttl: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Rr | interface{} | Property rr: The host record. |
Status | interface{} | Property status: The status of the DNS record. |
Type | interface{} | Property type: The type of the DNS record. |
Value | interface{} | Property value: Record value. |
ZoneId | interface{} | Property zoneId: Zone Id. |
Priority | interface{} | Property priority: The priority of the MX record. |
Ttl | interface{} | Property ttl: The time to live (TTL). |
RrRequired
Rr interface{}
- Type: interface{}
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
Status interface{}
- Type: interface{}
Property status: The status of the DNS record.
Valid values:
- ENABLE: Enables DNS resolution.
- DISABLE: Pauses DNS resolution.
TypeRequired
Type interface{}
- Type: interface{}
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
Value interface{}
- Type: interface{}
Property value: Record value.
ZoneIdRequired
ZoneId interface{}
- Type: interface{}
Property zoneId: Zone Id.
PriorityOptional
Priority interface{}
- Type: interface{}
Property priority: The priority of the MX record.
A smaller value indicates a higher priority. Valid values: [1, 99].
TtlOptional
Ttl interface{}
- Type: interface{}
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.