2022-01-25 09:40:19 +00:00
|
|
|
package nns
|
|
|
|
|
2022-04-20 18:30:09 +00:00
|
|
|
// RecordState is a type that registered entities are saved as.
|
2022-01-25 09:40:19 +00:00
|
|
|
type RecordState struct {
|
|
|
|
Name string
|
|
|
|
Type RecordType
|
|
|
|
Data string
|
|
|
|
}
|
|
|
|
|
|
|
|
// RecordType is domain name service record types.
|
|
|
|
type RecordType byte
|
|
|
|
|
2022-04-20 18:30:09 +00:00
|
|
|
// Record types are defined in [RFC 1035](https://tools.ietf.org/html/rfc1035)
|
2022-01-25 09:40:19 +00:00
|
|
|
const (
|
|
|
|
// A represents address record type.
|
|
|
|
A RecordType = 1
|
|
|
|
// CNAME represents canonical name record type.
|
|
|
|
CNAME RecordType = 5
|
|
|
|
// TXT represents text record type.
|
|
|
|
TXT RecordType = 16
|
|
|
|
)
|
|
|
|
|
2022-04-20 18:30:09 +00:00
|
|
|
// Record types are defined in [RFC 3596](https://tools.ietf.org/html/rfc3596)
|
2022-01-25 09:40:19 +00:00
|
|
|
const (
|
|
|
|
// AAAA represents IPv6 address record type.
|
|
|
|
AAAA RecordType = 28
|
|
|
|
)
|