nameserver

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseDNSInternally

func UseDNSInternally(ip net.IP)

UseDNSInternally is to change the Go program DNS only.

func UseDNSSystemWide

func UseDNSSystemWide(resolvConfPath string, ip net.IP, keepNameserver bool) error

UseDNSSystemWide changes the nameserver to use for DNS system wide. If resolvConfPath is empty, it defaults to /etc/resolv.conf.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL