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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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