Documentation ¶
Index ¶
- func GetEnvOrDefault(key, defaultvalue string) string
- func HandleError(request *dns.Msg, rcode int, writer dns.ResponseWriter, e error) (int, error)
- func HandleNXDomain(qname string, request *dns.Msg, writer dns.ResponseWriter) (int, error)
- func LoadEnvFile(path string) error
- func LoadMagicDNSConfig(c *caddy.Controller, config *MagicDNSConfig) error
- func PrepareResponseRcode(request *dns.Msg, rcode int, recursionAvailable bool) *dns.Msg
- func PrepareResponseReply(request *dns.Msg, recursionAvailable bool) *dns.Msg
- type MagicDNSConfig
- type MagicDNSPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvOrDefault ¶
func HandleError ¶
func HandleNXDomain ¶
func LoadEnvFile ¶
func LoadMagicDNSConfig ¶
func LoadMagicDNSConfig(c *caddy.Controller, config *MagicDNSConfig) error
func PrepareResponseRcode ¶
Types ¶
type MagicDNSConfig ¶
type MagicDNSConfig struct {
Domain string
}
func CreateMagicDNSConfig ¶
func CreateMagicDNSConfig(c *caddy.Controller) (*MagicDNSConfig, error)
type MagicDNSPlugin ¶
type MagicDNSPlugin struct { Next plugin.Handler Config *MagicDNSConfig }
func CreatePlugin ¶
func CreatePlugin(c *caddy.Controller) (*MagicDNSPlugin, error)
func (MagicDNSPlugin) Name ¶
func (plug MagicDNSPlugin) Name() string
Click to show internal directories.
Click to hide internal directories.