coredns

package module
v0.0.0-...-1c84623 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package psql implements a plugin that query powerdns database to resolve the coredns query

Index

Constants

View Source
const Name = "psql"

Variables

This section is empty.

Functions

func ParseSOA

func ParseSOA(rr *dns.SOA, line string) bool

func WildcardMatch

func WildcardMatch(s1, s2 string) bool

Dummy wildcard match

Types

type PowerDNSGenericSQLBackend

type PowerDNSGenericSQLBackend struct {
	*gorm.DB
	Debug bool
	Next  plugin.Handler
}

func (PowerDNSGenericSQLBackend) AutoMigrate

func (pdb PowerDNSGenericSQLBackend) AutoMigrate() error

func (PowerDNSGenericSQLBackend) Name

func (pdb PowerDNSGenericSQLBackend) Name() string

func (PowerDNSGenericSQLBackend) SearchWildcard

func (pdb PowerDNSGenericSQLBackend) SearchWildcard(qname string, qtype uint16) (redords []*pdnsmodel.Record, err error)

func (PowerDNSGenericSQLBackend) ServeDNS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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