Documentation ¶
Overview ¶
Nasello is a DNS proxy server.
It can be used to route DNS queries to different remote servers based on pattern matching on the requested name.
See `config.go` for details about the configuration file format.
Code is inspired by go-dns examples like: https://github.com/miekg/exdns/blob/master/q/q.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerHandler ¶
func ServerHandler(addresses []string) handler
Returns an anonymous function configured to resolve DNS queries with a specific set of remote servers.
Types ¶
type ConfigFilter ¶
type Configuration ¶
type Configuration struct {
Filters []ConfigFilter
}
func ReadConfig ¶
func ReadConfig(filename string) Configuration
ReadConfig reads a JSON file and returns a Configuration object containing the raw elements.
Click to show internal directories.
Click to hide internal directories.