Documentation
¶
Index ¶
- Constants
- Variables
- func CatalogVersion() uint64
- func GetAllTypeNames() []string
- func IsPrivateType(codepoint uint16) bool
- func Register(codepoint uint16, typeName string, newFn func() dnsv2.RR, makeFn MakerRn)
- func RegisterMaker(codepoint uint16, makeFn MakerRn)
- func TokensToArgs(tokens []string) []string
- type ADGUARDHOMEAAAAPASSTHROUGH
- func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Clone() dnsv2.RR
- func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Data() dnsv2.RDATA
- func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Header() *dnsv2.Header
- func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Len() int
- func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Parse(tokens []string, s string) error
- func (rr *ADGUARDHOMEAAAAPASSTHROUGH) String() string
- func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Type() uint16
- type ADGUARDHOMEAPASSTHROUGH
- func (rr *ADGUARDHOMEAPASSTHROUGH) Clone() dnsv2.RR
- func (rr *ADGUARDHOMEAPASSTHROUGH) Data() dnsv2.RDATA
- func (rr *ADGUARDHOMEAPASSTHROUGH) Header() *dnsv2.Header
- func (rr *ADGUARDHOMEAPASSTHROUGH) Len() int
- func (rr *ADGUARDHOMEAPASSTHROUGH) Parse(tokens []string, s string) error
- func (rr *ADGUARDHOMEAPASSTHROUGH) String() string
- func (rr *ADGUARDHOMEAPASSTHROUGH) Type() uint16
- type AKAMAICDN
- type AKAMAITLC
- type ALIAS
- type AZUREALIAS
- type BUNNYDNSPZ
- type BUNNYDNSRDR
- type CFWORKERROUTE
- func (rr *CFWORKERROUTE) Clone() dnsv2.RR
- func (rr *CFWORKERROUTE) Data() dnsv2.RDATA
- func (rr *CFWORKERROUTE) Header() *dnsv2.Header
- func (rr *CFWORKERROUTE) Len() int
- func (rr *CFWORKERROUTE) Parse(tokens []string, s string) error
- func (rr *CFWORKERROUTE) String() string
- func (rr *CFWORKERROUTE) Type() uint16
- type CLOUDFLAREAPISINGLEREDIRECT
- func (rr *CLOUDFLAREAPISINGLEREDIRECT) Clone() dnsv2.RR
- func (rr *CLOUDFLAREAPISINGLEREDIRECT) Data() dnsv2.RDATA
- func (rr *CLOUDFLAREAPISINGLEREDIRECT) Header() *dnsv2.Header
- func (rr *CLOUDFLAREAPISINGLEREDIRECT) Len() int
- func (rr *CLOUDFLAREAPISINGLEREDIRECT) Parse(tokens []string, s string) error
- func (rr *CLOUDFLAREAPISINGLEREDIRECT) String() string
- func (rr *CLOUDFLAREAPISINGLEREDIRECT) Type() uint16
- type CLOUDNSWR
- type FRAME
- type IMPORTTRANSFORM
- func (rr *IMPORTTRANSFORM) Clone() dnsv2.RR
- func (rr *IMPORTTRANSFORM) Data() dnsv2.RDATA
- func (rr *IMPORTTRANSFORM) Header() *dnsv2.Header
- func (rr *IMPORTTRANSFORM) Len() int
- func (rr *IMPORTTRANSFORM) Parse(tokens []string, s string) error
- func (rr *IMPORTTRANSFORM) String() string
- func (rr *IMPORTTRANSFORM) Type() uint16
- type LUA
- type MIKROTIKFORWARDER
- func (rr *MIKROTIKFORWARDER) Clone() dnsv2.RR
- func (rr *MIKROTIKFORWARDER) Data() dnsv2.RDATA
- func (rr *MIKROTIKFORWARDER) Header() *dnsv2.Header
- func (rr *MIKROTIKFORWARDER) Len() int
- func (rr *MIKROTIKFORWARDER) Parse(tokens []string, s string) error
- func (rr *MIKROTIKFORWARDER) String() string
- func (rr *MIKROTIKFORWARDER) Type() uint16
- type MIKROTIKFWD
- type MIKROTIKNXDOMAIN
- func (rr *MIKROTIKNXDOMAIN) Clone() dnsv2.RR
- func (rr *MIKROTIKNXDOMAIN) Data() dnsv2.RDATA
- func (rr *MIKROTIKNXDOMAIN) Header() *dnsv2.Header
- func (rr *MIKROTIKNXDOMAIN) Len() int
- func (rr *MIKROTIKNXDOMAIN) Parse(tokens []string, s string) error
- func (rr *MIKROTIKNXDOMAIN) String() string
- func (rr *MIKROTIKNXDOMAIN) Type() uint16
- type MakerRn
- type NETLIFY
- type NETLIFYV6
- type PORKBUNURLFWD
- func (rr *PORKBUNURLFWD) Clone() dnsv2.RR
- func (rr *PORKBUNURLFWD) Data() dnsv2.RDATA
- func (rr *PORKBUNURLFWD) Header() *dnsv2.Header
- func (rr *PORKBUNURLFWD) Len() int
- func (rr *PORKBUNURLFWD) Parse(tokens []string, s string) error
- func (rr *PORKBUNURLFWD) String() string
- func (rr *PORKBUNURLFWD) Type() uint16
- type R53ALIAS
- type RecordType
- type URL
- type URL301
Constants ¶
const TypeADGUARDHOMEAAAAPASSTHROUGH = uint16(65281)
const TypeADGUARDHOMEAPASSTHROUGH = uint16(65280)
const TypeAKAMAICDN = uint16(65282)
const TypeAKAMAITLC = uint16(65284)
const TypeALIAS = uint16(65285)
const TypeAZUREALIAS = uint16(65286)
const TypeBUNNYDNSPZ = uint16(65287)
const TypeBUNNYDNSRDR = uint16(65320)
const TypeCFWORKERROUTE = uint16(65288)
const TypeCLOUDFLAREAPISINGLEREDIRECT = uint16(65289)
const TypeCLOUDNSWR = uint16(65290)
const TypeFRAME = uint16(65291)
const TypeIMPORTTRANSFORM = uint16(65322)
const TypeLUA = uint16(65292)
const TypeMIKROTIKFORWARDER = uint16(65321)
const TypeMIKROTIKFWD = uint16(65293)
const TypeMIKROTIKNXDOMAIN = uint16(65294)
const TypeNETLIFY = uint16(65295)
const TypeNETLIFYV6 = uint16(65296)
const TypePORKBUNURLFWD = uint16(65297)
const TypeR53ALIAS = uint16(65298)
const TypeURL = uint16(65299)
const TypeURL301 = uint16(65300)
Variables ¶
var TypeToMakeRDATA = make(map[uint16]MakerRn)
Functions ¶
func CatalogVersion ¶ added in v5.4.0
func CatalogVersion() uint64
CatalogVersion changes when record types or their makers are registered. Registration must finish before concurrent reads begin.
func GetAllTypeNames ¶
func GetAllTypeNames() []string
GetAllTypeNames returns a sorted list of all type names.
func IsPrivateType ¶
IsPrivateType returns true if the codepoint is for a private type.
func Register ¶
Register registers a new private RR type. It panics if the code point or name is already in use.
func RegisterMaker ¶
RegisterMaker registers just the Make*() function for an rtype. This is needed for non-private types.
func TokensToArgs ¶
TokensToArgs copies tokens, removing surrounding quotes from quoted strings. Two consecutive quote tokens represent an empty string.
Types ¶
type ADGUARDHOMEAAAAPASSTHROUGH ¶
type ADGUARDHOMEAAAAPASSTHROUGH struct {
Hdr dnsv2.Header
privatetypesrdata.ADGUARDHOMEAAAAPASSTHROUGH
}
func (*ADGUARDHOMEAAAAPASSTHROUGH) Clone ¶
func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Clone() dnsv2.RR
func (*ADGUARDHOMEAAAAPASSTHROUGH) Data ¶
func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Data() dnsv2.RDATA
func (*ADGUARDHOMEAAAAPASSTHROUGH) Header ¶
func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Header() *dnsv2.Header
func (*ADGUARDHOMEAAAAPASSTHROUGH) Len ¶
func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Len() int
func (*ADGUARDHOMEAAAAPASSTHROUGH) Parse ¶
func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*ADGUARDHOMEAAAAPASSTHROUGH) String ¶
func (rr *ADGUARDHOMEAAAAPASSTHROUGH) String() string
func (*ADGUARDHOMEAAAAPASSTHROUGH) Type ¶
func (rr *ADGUARDHOMEAAAAPASSTHROUGH) Type() uint16
type ADGUARDHOMEAPASSTHROUGH ¶
type ADGUARDHOMEAPASSTHROUGH struct {
Hdr dnsv2.Header
privatetypesrdata.ADGUARDHOMEAPASSTHROUGH
}
func (*ADGUARDHOMEAPASSTHROUGH) Clone ¶
func (rr *ADGUARDHOMEAPASSTHROUGH) Clone() dnsv2.RR
func (*ADGUARDHOMEAPASSTHROUGH) Data ¶
func (rr *ADGUARDHOMEAPASSTHROUGH) Data() dnsv2.RDATA
func (*ADGUARDHOMEAPASSTHROUGH) Header ¶
func (rr *ADGUARDHOMEAPASSTHROUGH) Header() *dnsv2.Header
func (*ADGUARDHOMEAPASSTHROUGH) Len ¶
func (rr *ADGUARDHOMEAPASSTHROUGH) Len() int
func (*ADGUARDHOMEAPASSTHROUGH) Parse ¶
func (rr *ADGUARDHOMEAPASSTHROUGH) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*ADGUARDHOMEAPASSTHROUGH) String ¶
func (rr *ADGUARDHOMEAPASSTHROUGH) String() string
func (*ADGUARDHOMEAPASSTHROUGH) Type ¶
func (rr *ADGUARDHOMEAPASSTHROUGH) Type() uint16
type AKAMAICDN ¶
type AKAMAICDN struct {
Hdr dnsv2.Header
privatetypesrdata.AKAMAICDN
}
type AKAMAITLC ¶
type AKAMAITLC struct {
Hdr dnsv2.Header
privatetypesrdata.AKAMAITLC
}
type ALIAS ¶
type ALIAS struct {
Hdr dnsv2.Header
privatetypesrdata.ALIAS
}
type AZUREALIAS ¶
type AZUREALIAS struct {
Hdr dnsv2.Header
privatetypesrdata.AZUREALIAS
}
func (*AZUREALIAS) Clone ¶
func (rr *AZUREALIAS) Clone() dnsv2.RR
func (*AZUREALIAS) Data ¶
func (rr *AZUREALIAS) Data() dnsv2.RDATA
func (*AZUREALIAS) Header ¶
func (rr *AZUREALIAS) Header() *dnsv2.Header
func (*AZUREALIAS) Len ¶
func (rr *AZUREALIAS) Len() int
func (*AZUREALIAS) Parse ¶
func (rr *AZUREALIAS) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*AZUREALIAS) String ¶
func (rr *AZUREALIAS) String() string
func (*AZUREALIAS) Type ¶
func (rr *AZUREALIAS) Type() uint16
type BUNNYDNSPZ ¶
type BUNNYDNSPZ struct {
Hdr dnsv2.Header
privatetypesrdata.BUNNYDNSPZ
}
func (*BUNNYDNSPZ) Clone ¶
func (rr *BUNNYDNSPZ) Clone() dnsv2.RR
func (*BUNNYDNSPZ) Data ¶
func (rr *BUNNYDNSPZ) Data() dnsv2.RDATA
func (*BUNNYDNSPZ) Header ¶
func (rr *BUNNYDNSPZ) Header() *dnsv2.Header
func (*BUNNYDNSPZ) Len ¶
func (rr *BUNNYDNSPZ) Len() int
func (*BUNNYDNSPZ) Parse ¶
func (rr *BUNNYDNSPZ) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*BUNNYDNSPZ) String ¶
func (rr *BUNNYDNSPZ) String() string
func (*BUNNYDNSPZ) Type ¶
func (rr *BUNNYDNSPZ) Type() uint16
type BUNNYDNSRDR ¶
type BUNNYDNSRDR struct {
Hdr dnsv2.Header
privatetypesrdata.BUNNYDNSRDR
}
func (*BUNNYDNSRDR) Clone ¶
func (rr *BUNNYDNSRDR) Clone() dnsv2.RR
func (*BUNNYDNSRDR) Data ¶
func (rr *BUNNYDNSRDR) Data() dnsv2.RDATA
func (*BUNNYDNSRDR) Header ¶
func (rr *BUNNYDNSRDR) Header() *dnsv2.Header
func (*BUNNYDNSRDR) Len ¶
func (rr *BUNNYDNSRDR) Len() int
func (*BUNNYDNSRDR) Parse ¶
func (rr *BUNNYDNSRDR) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*BUNNYDNSRDR) String ¶
func (rr *BUNNYDNSRDR) String() string
func (*BUNNYDNSRDR) Type ¶
func (rr *BUNNYDNSRDR) Type() uint16
type CFWORKERROUTE ¶
type CFWORKERROUTE struct {
Hdr dnsv2.Header
privatetypesrdata.CFWORKERROUTE
}
func (*CFWORKERROUTE) Clone ¶
func (rr *CFWORKERROUTE) Clone() dnsv2.RR
func (*CFWORKERROUTE) Data ¶
func (rr *CFWORKERROUTE) Data() dnsv2.RDATA
func (*CFWORKERROUTE) Header ¶
func (rr *CFWORKERROUTE) Header() *dnsv2.Header
func (*CFWORKERROUTE) Len ¶
func (rr *CFWORKERROUTE) Len() int
func (*CFWORKERROUTE) Parse ¶
func (rr *CFWORKERROUTE) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*CFWORKERROUTE) String ¶
func (rr *CFWORKERROUTE) String() string
func (*CFWORKERROUTE) Type ¶
func (rr *CFWORKERROUTE) Type() uint16
type CLOUDFLAREAPISINGLEREDIRECT ¶
type CLOUDFLAREAPISINGLEREDIRECT struct {
Hdr dnsv2.Header
privatetypesrdata.CLOUDFLAREAPISINGLEREDIRECT
}
func (*CLOUDFLAREAPISINGLEREDIRECT) Clone ¶
func (rr *CLOUDFLAREAPISINGLEREDIRECT) Clone() dnsv2.RR
func (*CLOUDFLAREAPISINGLEREDIRECT) Data ¶
func (rr *CLOUDFLAREAPISINGLEREDIRECT) Data() dnsv2.RDATA
func (*CLOUDFLAREAPISINGLEREDIRECT) Header ¶
func (rr *CLOUDFLAREAPISINGLEREDIRECT) Header() *dnsv2.Header
func (*CLOUDFLAREAPISINGLEREDIRECT) Len ¶
func (rr *CLOUDFLAREAPISINGLEREDIRECT) Len() int
func (*CLOUDFLAREAPISINGLEREDIRECT) Parse ¶
func (rr *CLOUDFLAREAPISINGLEREDIRECT) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*CLOUDFLAREAPISINGLEREDIRECT) String ¶
func (rr *CLOUDFLAREAPISINGLEREDIRECT) String() string
func (*CLOUDFLAREAPISINGLEREDIRECT) Type ¶
func (rr *CLOUDFLAREAPISINGLEREDIRECT) Type() uint16
type CLOUDNSWR ¶
type CLOUDNSWR struct {
Hdr dnsv2.Header
privatetypesrdata.CLOUDNSWR
}
type FRAME ¶
type FRAME struct {
Hdr dnsv2.Header
privatetypesrdata.FRAME
}
type IMPORTTRANSFORM ¶
type IMPORTTRANSFORM struct {
Hdr dnsv2.Header
privatetypesrdata.IMPORTTRANSFORM
}
func (*IMPORTTRANSFORM) Clone ¶
func (rr *IMPORTTRANSFORM) Clone() dnsv2.RR
func (*IMPORTTRANSFORM) Data ¶
func (rr *IMPORTTRANSFORM) Data() dnsv2.RDATA
func (*IMPORTTRANSFORM) Header ¶
func (rr *IMPORTTRANSFORM) Header() *dnsv2.Header
func (*IMPORTTRANSFORM) Len ¶
func (rr *IMPORTTRANSFORM) Len() int
func (*IMPORTTRANSFORM) Parse ¶
func (rr *IMPORTTRANSFORM) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*IMPORTTRANSFORM) String ¶
func (rr *IMPORTTRANSFORM) String() string
func (*IMPORTTRANSFORM) Type ¶
func (rr *IMPORTTRANSFORM) Type() uint16
type LUA ¶
type LUA struct {
Hdr dnsv2.Header
privatetypesrdata.LUA
}
type MIKROTIKFORWARDER ¶
type MIKROTIKFORWARDER struct {
Hdr dnsv2.Header
privatetypesrdata.MIKROTIKFORWARDER
}
func (*MIKROTIKFORWARDER) Clone ¶
func (rr *MIKROTIKFORWARDER) Clone() dnsv2.RR
func (*MIKROTIKFORWARDER) Data ¶
func (rr *MIKROTIKFORWARDER) Data() dnsv2.RDATA
func (*MIKROTIKFORWARDER) Header ¶
func (rr *MIKROTIKFORWARDER) Header() *dnsv2.Header
func (*MIKROTIKFORWARDER) Len ¶
func (rr *MIKROTIKFORWARDER) Len() int
func (*MIKROTIKFORWARDER) Parse ¶
func (rr *MIKROTIKFORWARDER) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*MIKROTIKFORWARDER) String ¶
func (rr *MIKROTIKFORWARDER) String() string
func (*MIKROTIKFORWARDER) Type ¶
func (rr *MIKROTIKFORWARDER) Type() uint16
type MIKROTIKFWD ¶
type MIKROTIKFWD struct {
Hdr dnsv2.Header
privatetypesrdata.MIKROTIKFWD
}
func (*MIKROTIKFWD) Clone ¶
func (rr *MIKROTIKFWD) Clone() dnsv2.RR
func (*MIKROTIKFWD) Data ¶
func (rr *MIKROTIKFWD) Data() dnsv2.RDATA
func (*MIKROTIKFWD) Header ¶
func (rr *MIKROTIKFWD) Header() *dnsv2.Header
func (*MIKROTIKFWD) Len ¶
func (rr *MIKROTIKFWD) Len() int
func (*MIKROTIKFWD) Parse ¶
func (rr *MIKROTIKFWD) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*MIKROTIKFWD) String ¶
func (rr *MIKROTIKFWD) String() string
func (*MIKROTIKFWD) Type ¶
func (rr *MIKROTIKFWD) Type() uint16
type MIKROTIKNXDOMAIN ¶
type MIKROTIKNXDOMAIN struct {
Hdr dnsv2.Header
privatetypesrdata.MIKROTIKNXDOMAIN
}
func (*MIKROTIKNXDOMAIN) Clone ¶
func (rr *MIKROTIKNXDOMAIN) Clone() dnsv2.RR
func (*MIKROTIKNXDOMAIN) Data ¶
func (rr *MIKROTIKNXDOMAIN) Data() dnsv2.RDATA
func (*MIKROTIKNXDOMAIN) Header ¶
func (rr *MIKROTIKNXDOMAIN) Header() *dnsv2.Header
func (*MIKROTIKNXDOMAIN) Len ¶
func (rr *MIKROTIKNXDOMAIN) Len() int
func (*MIKROTIKNXDOMAIN) Parse ¶
func (rr *MIKROTIKNXDOMAIN) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*MIKROTIKNXDOMAIN) String ¶
func (rr *MIKROTIKNXDOMAIN) String() string
func (*MIKROTIKNXDOMAIN) Type ¶
func (rr *MIKROTIKNXDOMAIN) Type() uint16
type NETLIFY ¶
type NETLIFY struct {
Hdr dnsv2.Header
privatetypesrdata.NETLIFY
}
type NETLIFYV6 ¶
type NETLIFYV6 struct {
Hdr dnsv2.Header
privatetypesrdata.NETLIFYV6
}
type PORKBUNURLFWD ¶
type PORKBUNURLFWD struct {
Hdr dnsv2.Header
privatetypesrdata.PORKBUNURLFWD
}
func (*PORKBUNURLFWD) Clone ¶
func (rr *PORKBUNURLFWD) Clone() dnsv2.RR
func (*PORKBUNURLFWD) Data ¶
func (rr *PORKBUNURLFWD) Data() dnsv2.RDATA
func (*PORKBUNURLFWD) Header ¶
func (rr *PORKBUNURLFWD) Header() *dnsv2.Header
func (*PORKBUNURLFWD) Len ¶
func (rr *PORKBUNURLFWD) Len() int
func (*PORKBUNURLFWD) Parse ¶
func (rr *PORKBUNURLFWD) Parse(tokens []string, s string) error
Parse makes an RDATA for this type using the tokens from dnsv2's parser.
func (*PORKBUNURLFWD) String ¶
func (rr *PORKBUNURLFWD) String() string
func (*PORKBUNURLFWD) Type ¶
func (rr *PORKBUNURLFWD) Type() uint16
type R53ALIAS ¶
type R53ALIAS struct {
Hdr dnsv2.Header
privatetypesrdata.R53ALIAS
}
type RecordType ¶ added in v5.4.0
RecordType describes a zone record recognized by the parser.
func LookupRecordType ¶ added in v5.4.0
func LookupRecordType(name string) (RecordType, bool)
LookupRecordType excludes protocol/query-only types and internal commands from the zone catalog.
func RecordTypes ¶ added in v5.4.0
func RecordTypes() []RecordType
RecordTypes returns the complete zone record catalog, sorted by name.
type URL ¶
type URL struct {
Hdr dnsv2.Header
privatetypesrdata.URL
}
Source Files
¶
- register.go
- t_adguardhome_a_passthrough.go
- t_adguardhome_aaaa_passthrough.go
- t_akamaicdn.go
- t_akamaitlc.go
- t_alias.go
- t_azure_alias.go
- t_bunny_dns_pz.go
- t_bunny_dns_rdr.go
- t_cf_worker_route.go
- t_cloudflareapi_single_redirect.go
- t_cloudns_wr.go
- t_frame.go
- t_import_transform.go
- t_lua.go
- t_mikrotik_forwarder.go
- t_mikrotik_fwd.go
- t_mikrotik_nxdomain.go
- t_netlify.go
- t_netlifyv6.go
- t_porkbun_urlfwd.go
- t_r53_alias.go
- t_url.go
- t_url301.go
- tokens.go