Documentation
¶
Overview ¶
Package rdata contains all the rdata elements of all the resource records.
Index ¶
- type A
- type AAAA
- type AFSDB
- type CAA
- type CERT
- type CNAME
- type CSYNC
- type DELEG
- type DHCID
- type DNAME
- type DNSKEY
- type DS
- type DSYNC
- type EID
- type EUI48
- type EUI64
- type GID
- type GPOS
- type HINFO
- type HIP
- type IPN
- type ISDN
- type KX
- type L32
- type L64
- type LOC
- type LP
- type MB
- type MD
- type MF
- type MG
- type MINFO
- type MR
- type MX
- type NAPTR
- type NID
- type NIMLOC
- type NINFO
- type NS
- type NSAPPTR
- type NSEC
- type NSEC3
- type NSEC3PARAM
- type NULL
- type OPENPGPKEY
- type PTR
- type PX
- type RFC3597
- type RKEY
- type RP
- type RRSIG
- type RT
- type SMIMEA
- type SOA
- type SRV
- type SSHFP
- type SVCB
- type TA
- type TALINK
- type TKEY
- type TLSA
- type TSIG
- type TXT
- type UID
- type UINFO
- type URI
- type X25
- type ZONEMD
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAA ¶
type CAA struct {
Flag uint8
Tag string
Value string `dns:"any"` // Value is the character-string encoding of the value field as specified in RFC 1035, Section 5.1.
}
CAA data. See RFC 6844.
type DELEG ¶
DELEG data. See draft https://datatracker.ietf.org/doc/draft-ietf-deleg/.
type EID ¶
type EID struct {
Endpoint string `dns:"hex"`
}
EID data. See http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt.
type HIP ¶
type HIP struct {
HitLength uint8
PublicKeyAlgorithm uint8
PublicKeyLength uint16
Hit string `dns:"size-hex:HitLength"`
PublicKey string `dns:"size-base64:PublicKeyLength"`
RendezvousServers []string `dns:"domain-name"`
}
HIP data. See RFC 8005.
type IPN ¶
type IPN struct {
Node uint64
}
IPN data. See https://www.iana.org/assignments/dns-parameters/IPN/ipn-completed-template.
type ISDN ¶
ISDN data. See RFC 1183, Section 3.2.
type LOC ¶
type LOC struct {
Version uint8
Size uint8
HorizPre uint8
VertPre uint8
Latitude uint32
Longitude uint32
Altitude uint32
}
LOC data. See RFC 1876.
type NAPTR ¶
type NAPTR struct {
Order uint16
Preference uint16
Flags string
Service string
Regexp string
Replacement string `dns:"domain-name"`
}
NAPTR data. See RFC 2915.
type NIMLOC ¶
type NIMLOC struct {
Locator string `dns:"hex"`
}
NIMLOC data. See http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt.
type NINFO ¶
type NINFO struct {
ZSData []string `dns:"txt"`
}
NINFO data. See https://www.iana.org/assignments/dns-parameters/NINFO/ninfo-completed-template.
type NSEC3 ¶
type NSEC3 struct {
Hash uint8
Flags uint8
Iterations uint16
SaltLength uint8
Salt string `dns:"size-hex:SaltLength"`
HashLength uint8
NextDomain string `dns:"size-base32:HashLength"`
TypeBitMap []uint16 `dns:"nsec"`
}
NSEC3 data. See RFC 5155.
type NSEC3PARAM ¶
type NSEC3PARAM struct {
Hash uint8
Flags uint8
Iterations uint16
SaltLength uint8
Salt string `dns:"size-hex:SaltLength"`
}
NSEC3PARAM data. See RFC 5155.
func (NSEC3PARAM) Len ¶
func (rd NSEC3PARAM) Len() int
func (NSEC3PARAM) String ¶ added in v0.6.0
func (rd NSEC3PARAM) String() string
type OPENPGPKEY ¶
type OPENPGPKEY struct {
PublicKey string `dns:"base64"`
}
OPENPGPKEY data. See RFC 7929.
func (OPENPGPKEY) Len ¶
func (rd OPENPGPKEY) Len() int
func (OPENPGPKEY) String ¶ added in v0.6.0
func (rd OPENPGPKEY) String() string
type PX ¶
type PX struct {
Preference uint16
Map822 string `dns:"domain-name"`
Mapx400 string `dns:"domain-name"`
}
PX data. See RFC 2163.
type RKEY ¶
RKEY data. See https://www.iana.org/assignments/dns-parameters/RKEY/rkey-completed-template.
type RP ¶
RP data. See RFC 1138, Section 2.2.
type RRSIG ¶
type RT ¶
type RT struct {
Preference uint16
Host string `dns:"domain-name"` // RFC 3597 prohibits compressing records not defined in RFC 1035.
}
RT data. See RFC 1183, Section 3.3.
type SOA ¶
type SOA struct {
Ns string `dns:"cdomain-name"`
Mbox string `dns:"cdomain-name"`
Serial uint32
Refresh uint32
Retry uint32
Expire uint32
Minttl uint32
}
SOA data. See RFC 1035.
type SVCB ¶
type SVCB struct {
Priority uint16 // If zero, Value must be empty or discarded by the user of this library.
Target string `dns:"domain-name"`
Value []svcb.Pair `dns:"pairs"`
}
SVCB data. See RFC 9460.
type TA ¶
TA data. See http://www.watson.org/~weiler/INI1999-19.pdf.
type TALINK ¶
TALINK data. See https://www.iana.org/assignments/dns-parameters/TALINK/talink-completed-template.
type TKEY ¶
type TKEY struct {
Algorithm string `dns:"domain-name"`
Inception uint32
Expiration uint32
Mode uint16
Error uint16
KeySize uint16
Key string `dns:"size-hex:KeySize"`
OtherLen uint16
OtherData string `dns:"size-hex:OtherLen"`
}
TKEY data. See RFC 2930.
type TSIG ¶
type TSIG struct {
Algorithm string `dns:"domain-name"` // Algorithm is encoded as a name, see HmacSHAXXX contstants.
TimeSigned uint64 `dns:"uint48"`
Fudge uint16
MACSize uint16
MAC string `dns:"size-hex:MACSize"`
OrigID uint16 // OrigID is the original message ID, when creating a TSIG this should be set to the message ID.
Error uint16
OtherLen uint16
OtherData string `dns:"size-hex:OtherLen"`
}
TSIG data.
type URI ¶
type URI struct {
Priority uint16
Weight uint16
Target string `dns:"any"` // Target is to be parsed as a sequence of character encoded octets according to RFC 3986.
}
URI data. See RFC 7553.