Versions in this module Expand all Collapse all v0 v0.1.3 Nov 3, 2017 Changes in this version + var DefaultDNSCache = &SimpleDNSCache + func LookupReachable(addr string) (string, error) + func WarmDNSCache(c DNSCache, addr string) error + type DNSCache interface + Add func(addr, resolved string) + Get func(addr string) (string, bool) + type Dialer interface + DialContext func(ctx context.Context, net, addr string) (net.Conn, error) + type DialerFunc func(ctx context.Context, network, address string) (net.Conn, error) + func NewDNSCachingDialer(dialer Dialer, cache DNSCache) DialerFunc + func (f DialerFunc) DialContext(ctx context.Context, network, address string) (net.Conn, error) + type SimpleDNSCache struct + func (c *SimpleDNSCache) Add(addr, resolved string) + func (c *SimpleDNSCache) Get(addr string) (resolved string, ok bool)