nameservers

package
v0.0.126 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultNSv4

func GetDefaultNSv4() []net.IP

func GetDefaultNSv6

func GetDefaultNSv6() []net.IP

Types

type Nameservers

type Nameservers struct {
	NS        []net.IP
	Defaultv4 []net.IP
	Defaultv6 []net.IP
}

func New

func New() *Nameservers

func NewfromResolvConf

func NewfromResolvConf(ipv6 bool) (*Nameservers, error)

func (*Nameservers) Add

func (nameservers *Nameservers) Add(ip net.IP)

func (*Nameservers) ToString

func (nameservers *Nameservers) ToString() []string

Jump to

Keyboard shortcuts

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