mserver

package
v0.0.0-...-61bc3b7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryBroadcast chan QueryEvent

QueryBroadcast is the channel for broadcasting DNS queries to the web server

Functions

func InitBroadcast

func InitBroadcast()

InitBroadcast initializes the query broadcast channel

func Listen

func Listen(port int, serveraddr string)

Types

type QueryEvent

type QueryEvent struct {
	Timestamp   time.Time
	ClientIP    string
	Domain      string
	QueryType   string
	ResolvedIPs []string
	Blocked     bool
	Cached      bool
}

QueryEvent represents a DNS query for broadcasting

Jump to

Keyboard shortcuts

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