conditionalallow

package
v0.0.0-...-679ce87 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 8 Imported by: 0

README

Conditional Allow / Limit TO

==========

A simple plugin to allow a semi split-DNS option, allowing you to restrict certain zones to specific IP ranges.

Using

Example

. {
    limitto 2001:db8::/32 192.0.2.0/24
    forward . 1.1.1.1
}

The paramaters to the directive specify which IP ranges to allow

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionalAllow

type ConditionalAllow struct {
	Next   plugin.Handler
	Config *config
}

ConditionalForward data

func (ConditionalAllow) Name

func (c ConditionalAllow) Name() string

Name implements interface

func (ConditionalAllow) ServeDNS

func (c ConditionalAllow) ServeDNS(ctx context.Context, w dns.ResponseWriter, msg *dns.Msg) (int, error)

ServeDNS implements interface

Jump to

Keyboard shortcuts

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