Documentation ¶
Index ¶
- Variables
- func ResolveNS(ctx context.Context, d netproxy.Dialer, dns netip.AddrPort, host string, ...) (records []string, err error)
- func ResolveNetip(ctx context.Context, d netproxy.Dialer, dns netip.AddrPort, host string, ...) (addrs []netip.Addr, err error)
- func SystemDns() (dns netip.AddrPort, err error)
- func TryUpdateSystemDns() (err error)
- func TryUpdateSystemDns1s() (err error)
- type ContextDialer
- type Ip46
- type URL
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BadDnsAnsError = fmt.Errorf("bad dns answer")
)
Functions ¶
func ResolveNetip ¶
func TryUpdateSystemDns ¶
func TryUpdateSystemDns() (err error)
func TryUpdateSystemDns1s ¶
func TryUpdateSystemDns1s() (err error)
TryUpdateSystemDns1s will update system DNS if 1 second has elapsed since the last TryUpdateSystemDns1s call.
Types ¶
type ContextDialer ¶
func (*ContextDialer) DialContext ¶
Click to show internal directories.
Click to hide internal directories.