dns

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Ctx is the global context used by the handler

Functions

func HandleDNSRequest

func HandleDNSRequest(w dns.ResponseWriter, r *dns.Msg)

func RespondWithRecords

func RespondWithRecords(w dns.ResponseWriter, req *dns.Msg, recs []model.Record, q dns.Question)

RespondWithRecords writes DNS records to the response message.

func RunDaemon

func RunDaemon(ctx context.Context, listen string) error

RunDaemon starts the DNS server listening on the specified address

Types

This section is empty.

Jump to

Keyboard shortcuts

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