README ¶ DNSApi The dns api is a simple api that allows requesting of axfr entries on a dns server, and adding/updating/removing entries with standard dns messages. It uses a simple TSIG with keyname and base64 encoded key, only with hmac-md5 algo. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type DNSApi func NewDNSApi(server string, port string, keyname string, key string, rootdomain string) *DNSApi func (b DNSApi) Add(fqdn string, ip string, class string, ttl int) error func (b DNSApi) List() ([]dns.RR, error) func (b DNSApi) Remove(fqdn string, class string) error func (b DNSApi) SendMessage(msg *dns.Msg) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DNSApi ¶ type DNSApi struct { // contains filtered or unexported fields } func NewDNSApi ¶ func NewDNSApi(server string, port string, keyname string, key string, rootdomain string) *DNSApi func (DNSApi) Add ¶ func (b DNSApi) Add(fqdn string, ip string, class string, ttl int) error func (DNSApi) List ¶ func (b DNSApi) List() ([]dns.RR, error) func (DNSApi) Remove ¶ func (b DNSApi) Remove(fqdn string, class string) error func (DNSApi) SendMessage ¶ func (b DNSApi) SendMessage(msg *dns.Msg) error Source Files ¶ View all Source files dnsapi.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.