zone

package
v0.0.0-...-e6503be Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalNameserver  string = "127.0.0.1:5353"
	LocalReverseZone string = "10.in-addr.arpa"
)

todo move to config

Variables

This section is empty.

Functions

This section is empty.

Types

type PTR

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

func NewPTR

func NewPTR(logger *logrus.Logger, auth pdnsApi.Client) *PTR

func (*PTR) AddPTR

func (s *PTR) AddPTR(ctx context.Context, serverID string, zoneID string, rrset zones.ResourceRecordSet) error

AddPTR check exists PTR record by name, remove old PTR and add new

func (*PTR) DelPTR

func (s *PTR) DelPTR(ctx context.Context, serverID string, zoneID string, rrset zones.ResourceRecordSet) error

DelPTR removes PTR record

Jump to

Keyboard shortcuts

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