bind

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2017 License: MIT Imports: 17 Imported by: ? modules, 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

Overview

Generate zonefiles. This generates a zonefile that prioritizes beauty over efficiency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteZoneFile

func WriteZoneFile(w io.Writer, records []dns.RR, origin string, defaultTtl uint32) error

WriteZoneFile writes a beautifully formatted zone file.

Types

type Bind

type Bind struct {
	Default_NS  []string `json:"default_ns"`
	Default_Soa SoaInfo  `json:"default_soa"`
	// contains filtered or unexported fields
}

func (*Bind) GetDomainCorrections

func (c *Bind) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error)

func (*Bind) GetNameservers

func (c *Bind) GetNameservers(string) ([]*models.Nameserver, error)

type SoaInfo

type SoaInfo 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"`
}

func (SoaInfo) String

func (s SoaInfo) String() string

Jump to

Keyboard shortcuts

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