Documentation ¶
Overview ¶
Package ns provides name server methods for selected name server(s)
Index ¶
- type Host
- type Request
- func (d *Request) ChkCountry(country string) bool
- func (d *Request) ChkNode(city string) bool
- func (d *Request) CountryList() []string
- func (d *Request) Dig()
- func (d *Request) Init()
- func (d *Request) Local()
- func (d *Request) NodeList() []string
- func (d *Request) RunDig()
- func (d *Request) RunDigTrace()
- func (d *Request) SetOptions(args, prompt string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Country string City string Target string Type uint16 Host string Hosts []Host TraceEnabled bool }
A Request represents a name server request
func (*Request) ChkCountry ¶
ChkCountry validates and set requested country
func (*Request) CountryList ¶ added in v0.1.8
CountryList init the connect contry items
func (*Request) Local ¶ added in v0.1.7
func (d *Request) Local()
Local set host to nothing means local
func (*Request) RunDigTrace ¶ added in v0.2.3
func (d *Request) RunDigTrace()
RunDigTrace handles dig trace
func (*Request) SetOptions ¶ added in v0.2.3
SetOptions passes arguments to appropriate variable
Click to show internal directories.
Click to hide internal directories.