bind

package
v5.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSoaIfMissing

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

AddSoaIfMissing adds a default SOA record if dc has none.

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