Do not invoke the mDNS lookups from the server: they are used from the Zone database now...

Improved DNS server:
- simplify the handlers code, removing duplicated code
- more configuration parameters (eg, we can now disable the cache)
- we can now bind to port 0 and let the server get a free port (so we can get rid of the mess we had in the unit tests...)
This commit is contained in:
Alvaro Saurin committed 2015-05-26 21:20:42 +02:00
1 parent a23462e830
commit 07d15092aa
5 files changed
+231 -181

No files matched your search

+7 -5
View File
@@ -96,13 +96,15 @@ func main() {
}
srvConfig := weavedns.DNSServerConfig{
Port: dnsPort,
CacheLen: cacheLen,
Timeout: timeout,
UDPBufLen: udpbuf,
Zone: zone,
Port: dnsPort,
CacheLen: cacheLen,
Timeout: timeout,
UDPBufLen: udpbuf,
CacheDisabled: cacheDisabled,
}
srv, err := weavedns.NewDNSServer(srvConfig, zone, iface)
srv, err := weavedns.NewDNSServer(srvConfig)
if err != nil {
Error.Fatal("[main] Failed to initialize the WeaveDNS server", err)
}