dnsreplacer

package
v0.0.0-...-f0fecd2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrictMatcher

func StrictMatcher(dnsQ, domain string) bool

func SuffixMatcher

func SuffixMatcher(dnsQ, domain string) bool

Types

type Replacer

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

func New

func New(storage Storage) *Replacer

func (*Replacer) ReplaceAddr

func (r *Replacer) ReplaceAddr(req *dns.Msg) (*dns.Msg, bool)

type Storage

type Storage interface {
	GetRewrites() rewrites.EntrySet
}

Jump to

Keyboard shortcuts

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