dnssrv

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package dnssrv implements a simple DNS server.

Index

Constants

This section is empty.

Variables

View Source
var DNSDatabase = map[string]Records{}

DNSDatabase is a map of hostnames to the records associated with it.

View Source
var DNSUpdate = time.Time{}

DNSUpdate is the last time the DNSDatabase was updated.

Functions

func Start

func Start(iface string, port int, suffix string, req chan string) error

Start brings up a DNS server for the specified suffix on a given port.

Types

type Records

type Records struct {
	A    []net.IP
	AAAA []net.IP
}

Records contains the types of records the server will respond to.

Jump to

Keyboard shortcuts

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