Help us shape the future of Go! Take the 2026 Go Developer Survey

dns

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Apex     = "@"
	Wildcard = "*"
)

Special node names.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrRecord

type AddrRecord struct {
	A    net.IP
	AAAA net.IP
	TTL  uint32
}

func (*AddrRecord) DeepCopy

func (r *AddrRecord) DeepCopy() AddrRecord

type Node

type Node struct {
	Name string // Empty name indicates nonexistent/unknown node
	Records
}

Node carries information about a host within a zone.

type Records

type Records struct {
	Addr AddrRecord
	TXT  TextRecord
	NS   StringRecord
}

func (*Records) DeepCopy

func (rs *Records) DeepCopy() Records

func (*Records) Empty added in v0.3.1

func (rs *Records) Empty() bool

type StringRecord added in v0.2.0

type StringRecord struct {
	Value string
	TTL   uint32
}

func (*StringRecord) DeepCopy added in v0.2.0

func (r *StringRecord) DeepCopy() StringRecord

type TextRecord

type TextRecord struct {
	Values []string
	TTL    uint32
}

func (*TextRecord) DeepCopy

func (r *TextRecord) DeepCopy() TextRecord

Directories

Path Synopsis
Package dnsserver implements a simple, authoritative DNS server.
Package dnsserver implements a simple, authoritative DNS server.
Package dnszone implements a simple DNS zone container.
Package dnszone implements a simple DNS zone container.

Jump to

Keyboard shortcuts

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