dns

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Overview

Package dns provides dns server with rewrite modification

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyRewriteServer

type ProxyRewriteServer struct {
	RewriteTO       net.IP
	ListenOn        string
	ResolveConfPath string
}

ProxyRewriteServer - DNS server with rewrite function

func (*ProxyRewriteServer) ListenAndServe

func (p *ProxyRewriteServer) ListenAndServe(ctx context.Context) <-chan error

ListenAndServe - run DNS server

func (*ProxyRewriteServer) ServeDNS

func (p *ProxyRewriteServer) ServeDNS(rw dns.ResponseWriter, m *dns.Msg)

ServeDNS - serve DNS request

Jump to

Keyboard shortcuts

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