package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Feb 20, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DropHosts remove hosts domain record added by kt
DumpHosts dump service domain to hosts file
GetLocalDomains get domain search postfixes
GetNameServer get primary dns server
func SetupLocalDns(remoteDnsPort, localDnsPort int) error
Cli the singleton type
func (s *Cli) RestoreNameServer()
RestoreNameServer remove the nameservers added by ktctl
SetNameServer set dns server records
type DnsConfig interface {
SetNameServer(dnsServer string) error
RestoreNameServer()
}
DnsConfig ...
Ins get singleton instance
type DnsServer struct {
}
ServeDNS query DNS record
Source Files
¶
Click to show internal directories.
Click to hide internal directories.