dns

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DiscoveryClient client.Discovery
	Port            uint16
	Domain          string
}

Config represents the DNS server configurations.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represent a DNS server. has config field for port,domain,and client discovery, and the DNS server itself

func NewServer

func NewServer(config Config) (*Server, error)

NewServer creates a new instance of a DNS server with the given configurations

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe starts the DNS server

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown stops the DNS server

Jump to

Keyboard shortcuts

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