networksetup

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultNetworkService string
)

Functions

func FlushDnsCache

func FlushDnsCache() error

func GetDefaultNetworkService

func GetDefaultNetworkService() (string, error)

func GetDefaultNetworkServiceDnsServers

func GetDefaultNetworkServiceDnsServers() ([]string, error)

func GetDnsServers

func GetDnsServers(networkService string) ([]string, error)

func SetDefaultNetworkServiceDnsServers

func SetDefaultNetworkServiceDnsServers(nameServer []string) error

func SetDnsServers

func SetDnsServers(networkService string, nameServer []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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