dns

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: GPL-3.0 Imports: 10 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 {
	IPs []string
}

func NewARecord added in v0.0.69

func NewARecord() *ARecord

func (*ARecord) Append added in v0.0.69

func (AR *ARecord) Append(ip string)

func (*ARecord) Remove added in v0.0.69

func (AR *ARecord) Remove(ip string) error

type Records

type Records struct {
	ARecords map[string]*ARecord
	Agent    string
	Client   *client.Http
	User     *authentication.User
}

func New

func New(agent string, client *client.Http, user *authentication.User) *Records

func (*Records) AddARecord

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

func (*Records) Find

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

func (*Records) RemoveARecord

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

Jump to

Keyboard shortcuts

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