rfc2136

package
v0.0.0-...-1c56d84 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsRecord

type DnsRecord struct {
	Fqdn        string
	Type        string
	Values      []string
	TTL         uint32
	GeneratedId string
}

func (*DnsRecord) GenerateId

func (record *DnsRecord) GenerateId()

type Rfc2136

type Rfc2136 struct {
	// contains filtered or unexported fields
}

func New

func New(Host string, Port int, insecure bool, TsigSecret string, TsigSecretAlg string, TsigKeyName string) (*Rfc2136, error)

func (*Rfc2136) AddRecordForZone

func (rfc *Rfc2136) AddRecordForZone(zoneName string, record *DnsRecord) error

func (*Rfc2136) DeleteRecordForZone

func (rfc *Rfc2136) DeleteRecordForZone(zoneName string, record *DnsRecord) error

func (*Rfc2136) GetRecordsForZone

func (rfc *Rfc2136) GetRecordsForZone(zoneName string) (records []DnsRecord, err error)

Jump to

Keyboard shortcuts

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