Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { ListenAddress HostAndPort `json:"listenAddress"` RemoteHTTPURL string `json:"remoteHTTPURL"` ForwardDomain string `json:"forwardDomain"` ForwardNamesToAddresses []ForwardNameToAddress `json:"forwardNamesToAddresses"` ReverseDomain string `json:"reverseDomain"` ReverseAddressesToNames []ReverseAddressToName `json:"reverseAddressesToNames"` MinTTLSeconds uint32 `json:"minTTLSeconds"` MaxTTLSeconds uint32 `json:"maxTTLSeconds"` MaxCacheSize int `json:"maxCacheSize"` TimerIntervalSeconds int `json:"timerIntervalSeconds"` MaxPurgesPerTimerPop int `json:"maxPurgesPerTimerPop"` }
Configuration is the DNS proxy configuration.
func ReadConfiguration ¶
func ReadConfiguration(configFile string) (*Configuration, error)
ReadConfiguration reads the DNS proxy configuration from a json file.
type DNSProxy ¶
type DNSProxy interface {
Start()
}
DNSProxy is the DNS proxy.
func NewDNSProxy ¶
func NewDNSProxy(configuration *Configuration) DNSProxy
NewDNSProxy creates a DNS proxy.
type ForwardNameToAddress ¶
ForwardNameToAddress is a forward name to IP address mapping.
type HostAndPort ¶
HostAndPort is a host and port.
type ReverseAddressToName ¶
type ReverseAddressToName struct { ReverseAddress string `json:"reverseAddress"` Name string `json:"name"` }
ReverseAddressToName is a reverse address to name mapping.
Click to show internal directories.
Click to hide internal directories.