Documentation ¶
Index ¶
- type AAAA_Record
- type A_Record
- type CAA_Record
- type CNAME_Record
- type MX_Record
- type NS_Record
- type Record
- type Redis
- func (redis *Redis) A(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis Redis) AAAA(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis *Redis) AXFR(z *Zone) (records []dns.RR)
- func (redis *Redis) CAA(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis *Redis) CNAME(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis *Redis) Connect()
- func (redis *Redis) LoadZones()
- func (redis *Redis) MX(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis *Redis) NS(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis *Redis) Name() string
- func (redis *Redis) SOA(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis *Redis) SRV(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- func (redis *Redis) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (redis *Redis) TXT(name string, z *Zone, record *Record) (answers, extras []dns.RR)
- type SOA_Record
- type SRV_Record
- type TXT_Record
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AAAA_Record ¶
type CAA_Record ¶
type CNAME_Record ¶
type Record ¶
type Record struct { A []A_Record `json:"a,omitempty"` AAAA []AAAA_Record `json:"aaaa,omitempty"` TXT []TXT_Record `json:"txt,omitempty"` CNAME []CNAME_Record `json:"cname,omitempty"` NS []NS_Record `json:"ns,omitempty"` MX []MX_Record `json:"mx,omitempty"` SRV []SRV_Record `json:"srv,omitempty"` CAA []CAA_Record `json:"caa,omitempty"` SOA SOA_Record `json:"soa,omitempty"` }
type Redis ¶
type Redis struct { Next plugin.Handler Pool *redisCon.Pool Ttl uint32 Zones []string LastZoneUpdate time.Time // contains filtered or unexported fields }
type SOA_Record ¶
type SOA_Record struct { Ttl uint32 `json:"ttl,omitempty"` MName string `json:"mname"` RName string `json:"rname"` Serial uint32 `json:"serial"` Refresh uint32 `json:"refresh"` Retry uint32 `json:"retry"` Expire uint32 `json:"expire"` Minimum uint32 `json:"minimum"` }
SOA RDATA (https://tools.ietf.org/html/rfc1035#section-3.3.13)
type SRV_Record ¶
type TXT_Record ¶
Click to show internal directories.
Click to hide internal directories.