Documentation
¶
Index ¶
- func Run(version string)
- func Serve(ch chan error, srv *dns.Server, global *global.Global)
- type Server
- func (s *Server) Addr() []string
- func (s *Server) HttpAddr() []string
- func (s *Server) Reload() (err error)
- func (s *Server) Setup(conf string, global *global.Global, blocks []conffile.ServerBlock) error
- func (s *Server) Shutdown(ctx context.Context) error
- func (s *Server) Start() error
- func (s *Server) TlsAddr() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
Quiet bool // Quiet startup.
// contains filtered or unexported fields
}
func New ¶
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 ¶
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
HttpAddr return the addresses of the DOH servers. See [Addr].
Click to show internal directories.
Click to hide internal directories.