Documentation ¶
Index ¶
- Constants
- Variables
- func FQDN(dn string) string
- func FileExists(name string) bool
- func IpFamily(s string) int
- func IsDomainName(dn string) bool
- func Labels(dn string) []string
- func NewDYNARR() dns.PrivateRdata
- func SaveToFile(path string, reader io.Reader) error
- type DYNRR
- type Tree
- func (t *Tree) AddNode(labels []string) *Tree
- func (t *Tree) AddRR(rr dns.RR) *Tree
- func (t *Tree) Delete(name string)
- func (t *Tree) DeleteAll()
- func (t *Tree) DeleteNode(labels []string, force bool) error
- func (t *Tree) DeleteRR(rrType uint16, rr dns.RR)
- func (t *Tree) FindZoneCut() *Tree
- func (t *Tree) Get(name string) (interface{}, bool)
- func (t *Tree) GetRR(rrType uint16) ([]dns.RR, bool)
- func (t *Tree) SearchNode(labels []string, strict bool) *Tree
- func (t *Tree) Set(name string, value interface{})
- func (t *Tree) SetRR(rr dns.RR)
- func (t *Tree) VerifyNode() error
- func (t *Tree) VerifyZone(origin_labels []string) error
Constants ¶
View Source
const ( TypeDYNC = 0xFF10 TypeDYNA = 0xFF11 TypeDYNAAAA = 0xFF12 TypeDYNTXT = 0xFF13 TypeDYNMX = 0xFF14 TypeDYNPTR = 0xFF15 TypeDYNSRV = 0xFF16 )
View Source
const RabbitdnsVersion string = "0.1.0"
Variables ¶
View Source
var ( ErrVerifyZoneEmptyApex = errors.New("Apex node is empty.") ErrVerifyZoneEmptySOA = errors.New("SOA RR is empty.") ErrVerifyZoneDupulicateSOA = errors.New("More than 1 SOA RR found.") ErrVerifyZoneEmptyApexNS = errors.New("Apex NS not found.") ErrVerifyNodeDupulicateCNAME = errors.New("More than 1 CNAME RR found in same name.") ErrVerifyNodeOtherRRInCNAMENode = errors.New("Found other RR in CNAME node.") ErrVerifyNodeDupulicateDNAME = errors.New("More than 1 DNAME RR found in same name.") ErrVerifyNodeFoundChildNodeDNAME = errors.New("Found child node in DNAME node.") )
View Source
var DynamicStaticMap = map[uint16]uint16{ TypeDYNC: dns.TypeCNAME, TypeDYNA: dns.TypeA, TypeDYNAAAA: dns.TypeAAAA, TypeDYNTXT: dns.TypeTXT, TypeDYNMX: dns.TypeMX, TypeDYNPTR: dns.TypePTR, TypeDYNSRV: dns.TypeSRV, }
View Source
var (
ErrChildExist = errors.New("child node is exists")
)
View Source
var StaticDynamicMap = reverseUint16toUint16(DynamicStaticMap)
Functions ¶
func FileExists ¶
func IsDomainName ¶
func NewDYNARR ¶
func NewDYNARR() dns.PrivateRdata
Types ¶
Click to show internal directories.
Click to hide internal directories.