dnsserver

package
v0.1.1-dev Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

GoNetSim DNS
============

Documentation for the DNS server can be found here: https://gonetsim.lachlanharris.dev/reference/dns/. 
Unless otherwise specified, all content within this directory and any subdirectories falls under the
following copyright notice and license:

Copyright (c) Lachlan Harris 2026. All Rights Reserved.

This repository is licensed under the Apache 2.0 License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(conf Config) (*dns.Server, error)

func Run

func Run(ctx context.Context, conf Config, opts RunOptions) error

Types

type Config

type Config struct {
	Addr string
	Net  string

	SinkholeIPv4   netip.Addr
	SinkholeIPv6   netip.Addr
	SinkholeDomain string
	SinkholeTXT    string
	TTL            uint32
	Compress       bool
}

type RunOptions

type RunOptions struct {
	ShutdownTimeout time.Duration
}

Jump to

Keyboard shortcuts

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