dbcheck

package module
v0.0.0-...-b66d0f2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: Apache-2.0 Imports: 14 Imported by: ? 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.

README

CoreDNS DB Check

This plugin allows CoreDNS to check PTR, A and AAAA in a postgres database.

Installation

Compile CoreDNS with the edited plugin.cfg

dnssec:dnssec
dbcheck:github.com/creamfinance/coredns-dbcheck
reverse:reverse

It may be possible that there are vendoring conflicts, for reproduceable results build in a container and move all vendored go modules from coredns into the global GOPATH.

Configuration

Add the following section to your config file to enable the plugin.

   dbcheck {
      fallthrough
      database postgres
      connection_string postgres://coredns:coredns@127.0.0.1/coredns?sslmode=disable
   }

DB Setup

Execute the provided db.sql file.

Merge Requests

Merge requests for:

  • additional type handling
  • multi value handling
  • dynamic tables (without the fixed structure)
  • database support (for mysql, oracle, etc)

are welcome.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbCheck

type DbCheck struct {
	Next plugin.Handler

	Database         string
	ConnectionString string
	Fallthrough      bool
	Recursion        bool
	// contains filtered or unexported fields
}

func (*DbCheck) Init

func (check *DbCheck) Init() error

func (*DbCheck) Name

func (check *DbCheck) Name() string

func (*DbCheck) ServeDNS

func (check *DbCheck) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

type Zone

type Zone struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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