bind

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSoaIfMissing

func AddSoaIfMissing(dc *models.DomainConfig, defaultSoaValues SoaDefaults)

func AuditRecords

func AuditRecords(records models.Records) []error

AuditRecords returns a list of errors corresponding to the records that aren't supported by this provider. If all records are supported, an empty list is returned.

func ParseZoneContents

func ParseZoneContents(dc *models.DomainConfig, content string, zonefileName string) (models.Records, error)

ParseZoneContents parses a string as a BIND zone and returns the records.

Types

type SoaDefaults

type SoaDefaults struct {
	Ns      string `json:"master"`
	Mbox    string `json:"mbox"`
	Serial  uint32 `json:"serial"`
	Refresh uint32 `json:"refresh"`
	Retry   uint32 `json:"retry"`
	Expire  uint32 `json:"expire"`
	Minttl  uint32 `json:"minttl"`
	// TTL isn't part of the SOA RDATA.  It is a default applied to the SOA record's TTL itself.
	TTL uint32 `json:"ttl,omitempty"`
}

SoaDefaults contains the parts of the default SOA settings.

func (SoaDefaults) String

func (s SoaDefaults) String() string

Jump to

Keyboard shortcuts

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