Documentation ¶
Index ¶
- type CouchDB
- func (couchDB *CouchDB) A(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) AAAA(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) CAA(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) CNAME(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) Find(qname string) (qrecord string, z Zone)
- func (couchDB *CouchDB) MX(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) NS(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) Name() string
- func (couchDB *CouchDB) SOA(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) SRV(query string, z *Zone) (answers, extras []dns.RR)
- func (couchDB *CouchDB) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (couchDB *CouchDB) TXT(query string, z *Zone) (answers, extras []dns.RR)
- type Record
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CouchDB ¶
type CouchDB struct { Next plugin.Handler // Next handler in the list of plugins. Connection *couchdb.Connection DB *couchdb.Database // Addr is the address of the CouchDB server. Address string Port int DBname string // BasicAuth for couchdb BasicAuth couchdb.Auth }
CouchDB is the implementation of the "couchdb" CoreDNS plugin.
func (*CouchDB) CAA ¶
CAA returns CAA DNS records that matches with the query. Data record format such as RFC 4408 https://tools.ietf.org/html/rfc4408
func (*CouchDB) MX ¶
MX returns MX DNS records that matches with the query. Data record format such as RFC 974 https://tools.ietf.org/html/rfc974
func (*CouchDB) SRV ¶
SRV returns SRV DNS records that matches with the query. Data record format such as RFC 2782 https://tools.ietf.org/html/rfc2782 RDATA: Priority Weight Port Target
func (*CouchDB) ServeDNS ¶
func (couchDB *CouchDB) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
ServeDNS implements the plugin.Handler interface. The values the integer can take are the DNS RCODEs, dns.RcodeServerFailure, dns.RcodeNotImplemented, dns.RcodeSuccess, etc.. A successful return value indicates the plugin has written to the client.