dnsapi

package module
v0.0.0-...-e869250 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL