Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { Rules map[string]Rule `json:"rules"` Authoritative bool `json:"authoritative,default=true"` Recursion bool `json:"recursion,default=false"` Upstreams []string `json:"upstreams"` Providers map[string]string `json:"providers"` TTL uint32 `json:"ttl,default=60"` Tsig *TSIG `json:"tsig"` }
type Record ¶
type Record struct { Host string `json:"host"` Type RecordType `json:"type"` Value RecordValue `json:"value"` Weight uint16 `json:"weight,default=1"` Disabled bool `json:"disabled,default=false"` Note string `json:"-"` }
type RecordProvider ¶ added in v1.8.6
type RecordType ¶
type RecordType string
const ( RecordTypeA RecordType = "A" RecordTypeAAAA RecordType = "AAAA" RecordTypeCNAME RecordType = "CNAME" RecordTypeMX RecordType = "MX" RecordTypeNS RecordType = "NS" RecordTypeSOA RecordType = "SOA" RecordTypeSRV RecordType = "SRV" RecordTypeTXT RecordType = "TXT" )
func ReadRecordType ¶
func ReadRecordType(t uint16) RecordType
func (RecordType) DnsType ¶
func (t RecordType) DnsType() uint16
func (RecordType) String ¶
func (t RecordType) String() string
type RecordValue ¶
type RecordValue string
func (*RecordValue) IP ¶
func (v *RecordValue) IP() net.IP
func (*RecordValue) MX ¶ added in v1.7.0
func (v *RecordValue) MX() (*MXRecord, error)
func (*RecordValue) SOA ¶
func (v *RecordValue) SOA() (*SOARecord, error)
func (*RecordValue) SRV ¶
func (v *RecordValue) SRV() (*SRVRecord, error)
func (*RecordValue) String ¶
func (v *RecordValue) String() string
Click to show internal directories.
Click to hide internal directories.