atom

package
v0.5.26 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.5.16

func Run(version string)

Run starts a new atomdns server.

func Serve added in v0.5.4

func Serve(ch chan error, srv *dns.Server, global *global.Global)

Types

type Server

type Server struct {
	Quiet bool // Quiet startup.
	// contains filtered or unexported fields
}

func New

func New(conf string, r io.Reader) (*Server, error)

New returns a new server that has parsed the config in and r. If conf start with < and ends with > it's considered "not a file" and the contents of r is also stored in s.config.

func (*Server) Addr

func (s *Server) Addr() []string

When a server is started on the wildcard port, this method can be used to get the actual address and listening port. Note that with a wildcard port the servers will all run on a different port. For all returned address the first half are the UDP listening port, the other half is TCP. See [HttpAddr] for getting the addresss of the DOH server.

func (*Server) HttpAddr added in v0.5.4

func (s *Server) HttpAddr() []string

HttpAddr return the addresses of the DOH servers. See [Addr].

func (*Server) Reload added in v0.5.15

func (s *Server) Reload() (err error)

func (*Server) Setup added in v0.5.15

func (s *Server) Setup(conf string, global *global.Global, blocks []conffile.ServerBlock) error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) TlsAddr added in v0.5.6

func (s *Server) TlsAddr() []string

TlsAddr returns the addreses of the DOT servers. See [Addr].

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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