| 1 | package dns |
| 2 | |
| 3 | // |
| 4 | //you can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/enum-type&record-format |
| 5 | const ( |
| 6 | ARecord = "A" |
| 7 | NSRecord = "NS" |
| 8 | MXRecord = "MX" |
| 9 | TXTRecord = "TXT" |
| 10 | CNAMERecord = "CNAME" |
| 11 | SRVRecord = "SRV" |
| 12 | AAAARecord = "AAAA" |
| 13 | RedirectURLRecord = "REDIRECT_URL" |
| 14 | ForwordURLRecord = "FORWORD_URL" |
| 15 | ) |
| 16 | |
| 17 | type RecordType struct { |
| 18 | DomainName string |
| 19 | RecordId string |
| 20 | RR string |
| 21 | Type string |
| 22 | Value string |
| 23 | TTL int32 |
| 24 | Priority int32 |
| 25 | Line string |
| 26 | Status string |
| 27 | Locked bool |
| 28 | } |