Documentation ¶
Index ¶
- func CleanupHosts() error
- func GetHostFile() string
- func ListenAndServe(network, address string, forwardDNS *miekgdns.ClientConfig) error
- func SetupLocalDNS(ctx context.Context, clientConfig *miekgdns.ClientConfig, ...) error
- func WriteResolvConf(config miekgdns.ClientConfig) error
- type Config
- type CoreFile
- type CoreFileTmpl
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupHosts ¶
func CleanupHosts() error
func GetHostFile ¶
func GetHostFile() string
func ListenAndServe ¶ added in v2.2.5
func ListenAndServe(network, address string, forwardDNS *miekgdns.ClientConfig) error
func SetupLocalDNS ¶
func WriteResolvConf ¶
func WriteResolvConf(config miekgdns.ClientConfig) error
Types ¶
type Config ¶
type Config struct { Config *miekgdns.ClientConfig Ns []string TunName string Hosts []Entry Lock *sync.Mutex }
func (*Config) AddServiceNameToHosts ¶
type CoreFile ¶
type CoreFile struct {
Content []byte
}
func BuildCoreFile ¶
func BuildCoreFile(corefileTmpl CoreFileTmpl) (*CoreFile, error)
func (*CoreFile) ServerType ¶
ServerType The type of server this input is intended for
type CoreFileTmpl ¶
Click to show internal directories.
Click to hide internal directories.