dnsmasq

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigContentTmpl = `` /* 217-byte string literal not displayed */
View Source
const MerlinPostConfMarker = `# GENERATED BY ctrld - EOF`
View Source
const MerlinPostConfPath = "/jffs/scripts/dnsmasq.postconf"
View Source
const MerlinPostConfTmpl = `` /* 1267-byte string literal not displayed */

Variables

This section is empty.

Functions

func ConfTmpl

func ConfTmpl(tmplText string, cfg *ctrld.Config) (string, error)

func ConfTmplWitchCacheDisabled added in v1.3.2

func ConfTmplWitchCacheDisabled(tmplText string, cfg *ctrld.Config, cacheDisabled bool) (string, error)

func DisableCache added in v1.3.2

func DisableCache(conf string) error

DisableCache comments out "cache-size" line in dnsmasq config file.

func EnableCache added in v1.3.2

func EnableCache(conf string) error

EnableCache un-comments "cache-size" line in dnsmasq config file.

func FirewallaConfTmpl

func FirewallaConfTmpl(tmplText string, cfg *ctrld.Config) (string, error)

func FirewallaDisableCache added in v1.3.2

func FirewallaDisableCache() error

FirewallaDisableCache comments out "cache-size" line in all firewalla dnsmasq config files.

func FirewallaEnableCache added in v1.3.2

func FirewallaEnableCache() error

FirewallaEnableCache un-comments out "cache-size" line in all firewalla dnsmasq config files.

func FirewallaSelfInterfaces

func FirewallaSelfInterfaces() []*net.Interface

FirewallaSelfInterfaces returns list of interfaces that will be configured with default dnsmasq setup on Firewalla.

func InterfaceNameFromConfig

func InterfaceNameFromConfig(filename string) (string, error)

Types

type Upstream

type Upstream struct {
	IP   string
	Port int
}

Jump to

Keyboard shortcuts

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