Documentation
¶
Overview ¶
Package rfc2136 implements a DNS record management client compatible with the libdns interfaces for rfc2136.
Index ¶
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { // The address of the DNS server which supports RFC2136. // In the form "host" or "host:port" Nameserver string `json:"nameserver,omitempty"` // The algorithm to use for TSIG. // See https://github.com/miekg/dns/blob/master/tsig.go for available modes. // The trailing dot is not required. TSIGAlgorithm string `json:"tsig_algorithm,omitempty"` // The key name used when generating the key. TSIGKeyName string `json:"tsig_keyname,omitempty"` // The secret used to compute the signature. TSIGSecret string `json:"tsig_secret,omitempty"` // contains filtered or unexported fields }
Provider facilitates DNS record manipulation for dns servers implementing rfc2136.
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
AppendRecords adds records to the zone. It returns the records that were added.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes the records from the zone. It returns the records that were deleted.
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone.
Click to show internal directories.
Click to hide internal directories.