Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootServers []string
RootServers is a slice of root servers.
Functions ¶
func GetCachedDNSServer ¶
GetCachedDNSServer is used to get the cache DNS server.
func NextRootServer ¶
func NextRootServer() string
NextRootServer returns the next root server along, looping back around.
Types ¶
type Record ¶
type Record struct { // Type is used to define the type of the record. Type string `json:"type"` // TTL is the time to live of the DNS record. TTL uint32 `json:"ttl"` // Preference is used for MX records. Preference *uint16 `json:"priority,omitempty"` // Name is used to define the name of the DNS record. Name string `json:"name"` // Value is used to define the value of the DNS record. Value json.RawMessage `json:"value"` // contains filtered or unexported fields }
type RecordType ¶
type RecordType []Server
func LookupRDNS ¶
func (RecordType) String ¶
func (rt RecordType) String() string
Click to show internal directories.
Click to hide internal directories.