dns

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseQuery

func ParseQuery(cache *Records, m *dns.Msg) error

Types

type ARecord

type ARecord struct {
	Domain       map[string][]string
	DomainDelete map[string][]string
}

type Records

type Records struct {
	ARecords map[string]ARecord
}

func New

func New() *Records

func (*Records) AddARecord

func (r *Records) AddARecord(domain string, ip string)

func (*Records) Find

func (r *Records) Find(domain string) []string

func (*Records) FindDeleteQueue

func (r *Records) FindDeleteQueue(domain string) []string

func (*Records) RemoveARecord

func (r *Records) RemoveARecord(domain string, ip string) error

func (*Records) RemoveARecordQueue

func (r *Records) RemoveARecordQueue(domain string, ip string) error

func (*Records) ResetDeleteQueue

func (r *Records) ResetDeleteQueue(domain string)

Jump to

Keyboard shortcuts

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