Documentation ¶
Index ¶
- type Mailserver
- type RRDB
- func (db *RRDB) A(fqdn string, ttl int) (*Record, error)
- func (db *RRDB) AAAA(fqdn string, ttl int) (*Record, error)
- func (db *RRDB) AddTXT(fqdn string, ttl int, rdata string) error
- func (db *RRDB) CNAME(fqdn string, ttl int) (*Record, error)
- func (db *RRDB) MX(fqdn string, ttl int) (*Record, error)
- func (db *RRDB) NS(fqdn string, ttl int) (*Record, error)
- func (db *RRDB) Records(fqdn string, ttl int) ([]*Record, error)
- func (db *RRDB) SetA(fqdn string, ttl int, rdatas []string) error
- func (db *RRDB) SetAAAA(fqdn string, ttl int, rdatas []string) error
- func (db *RRDB) SetCNAME(fqdn string, ttl int, rdata string) error
- func (db *RRDB) SetMX(fqdn string, ttl int, rdatas []string) error
- func (db *RRDB) SetNS(fqdn string, ttl int, rdatas []string) error
- func (db *RRDB) TXT(fqdn string, ttl int) (*Record, error)
- func (db *RRDB) Zone(fqdn string, ttl int) ([]*Record, error)
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailserver ¶
Mailserver holds the preference and hostname of a single mailserver's entry
type RRDB ¶
type RRDB struct {
// contains filtered or unexported fields
}
RRDB holds a resource record database
func NewFromDirectory ¶
NewFromDirectory creates a new database from a directory of YAML-formatted zonedata files
func (*RRDB) A ¶
A retrieves the A record of a FQDN. If the record has no individual TTL, a default TTL (paramter ttl) will be inserted.
func (*RRDB) AAAA ¶
AAAA retrieves the AAAA record of a FQDN. If the record has no individual TTL, a default TTL (paramter ttl) will be inserted.
func (*RRDB) CNAME ¶
CNAME retrieves the CNAME record of a FQDN. If the record has no individual TTL, a default TTL (paramter ttl) will be inserted.
func (*RRDB) MX ¶
MX retrieves the MX record of a FQDN. If the record has no individual TTL, a default TTL (paramter ttl) will be inserted.
func (*RRDB) NS ¶
NS retrieves the NS record of a FQDN. If the record has no individual TTL, a default TTL (paramter ttl) will be inserted.