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 TryUpdateSystemDnsElapse(k time.Duration) (err error)
- type ContextDialer
- type Ip46
- type URL
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BadDnsAnsError = fmt.Errorf("bad dns answer") BootstrapDns = netip.MustParseAddrPort("208.67.222.222:5353") )
Functions ¶
func ResolveNetip ¶
func TryUpdateSystemDns ¶
func TryUpdateSystemDns() (err error)
func TryUpdateSystemDnsElapse ¶ added in v0.1.6
TryUpdateSystemDnsElapse will update system DNS if duration has elapsed since the last TryUpdateSystemDns1s call.
Types ¶
type ContextDialer ¶
func (*ContextDialer) DialContext ¶
Click to show internal directories.
Click to hide internal directories.