dnsimplementation

package
v0.0.0-...-3195ca0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2014 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCache

func GetCache() (*cache, error)

func Hijack

func Hijack(response dns.ResponseWriter, message *dns.Msg) (bool, error)

Types

type CacheRecord

type CacheRecord struct {
	Expiry time.Time
	Record []byte
}

type Hosts

type Hosts struct {
	Devices map[string]net.IP
}

func (*Hosts) Add

func (this *Hosts) Add(hostname string, ip net.IP) error

func (*Hosts) Get

func (this *Hosts) Get(hostname string) (bool, net.IP, error)

Jump to

Keyboard shortcuts

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