Documentation ¶ Index ¶ type Client func New(baseResolvers []string, maxRetries int) (*Client, error) func (c *Client) Resolve(host string) (Result, error) type Result Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } Client is a DNS resolver client to resolve hostnames. It caches hostnames according to their TTL values and does refresh only explicitly if another request is made to the domain. func New ¶ func New(baseResolvers []string, maxRetries int) (*Client, error) New creates a new dns client func (*Client) Resolve ¶ func (c *Client) Resolve(host string) (Result, error) Resolve is the underlying resolve function that actually resolves a host and gets the ip records for that host. type Result ¶ type Result struct { IPs []string TTL int } Result contains the results from a DNS resolution Source Files ¶ View all Source files resolver.go Click to show internal directories. Click to hide internal directories.