server

package
v0.0.0-...-f58949a Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResolvReuseTime int64 = 86400000 //ms
	ResolvNormal    int32 = 1
	ResolvAbnormal  int32 = 2
)
View Source
const (
	TypeBCAddr = 65
)

Variables

This section is empty.

Functions

func DNSServerDaemon

func DNSServerDaemon()

func DNSServerStop

func DNSServerStop()

func DnsHandleTradition

func DnsHandleTradition(w dns.ResponseWriter, msg *dns.Msg)

func FailDns

func FailDns(ips string)

func GetDns

func GetDns() string

func MaxTimes

func MaxTimes() int

Types

type DR

type DR struct {
	BAS_Ethereum.DomainRecord
}

func (*DR) IntIPv4

func (dr *DR) IntIPv4() uint32

type ResolvStatus

type ResolvStatus struct {
	Status  int32
	FailCnt int
	IPStr   string
	Idx     int
}

func (*ResolvStatus) String

func (rs *ResolvStatus) String() string

Jump to

Keyboard shortcuts

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