Michael Bridgen
fdcb960cdd
Don't export sendResponse, and pay attention to its retval
2014-10-28 17:23:03 +00:00
Michael Bridgen
b3489f6ec1
Move the handler function closer to its use
2014-10-28 15:39:50 +00:00
Michael Bridgen
96ce10a4d5
Use compact if-with-assign statements where scoping allows
2014-10-28 15:38:53 +00:00
Michael Bridgen
126c36cffb
Extended makeDNSReply to PTR replies too
2014-10-28 14:46:29 +00:00
Michael Bridgen
5bb6c85565
Move DNS utils into their own file
2014-10-28 11:48:51 +00:00
Michael Bridgen
a5869e2090
Use constant for TTL
2014-10-28 11:10:59 +00:00
Michael Bridgen
337919d741
Replaced ad-hoc printf with log levels
2014-10-20 18:18:16 +01:00
Bryan Boreham
3af058481e
Support returning AAAA records from delegated DNS queries
2014-10-20 17:18:17 +01:00
Michael Bridgen
0749460652
Moved updater into server
...
While we're only reacting to containers going away, it's more
convenient to bundle the docker events watcher into the server.
I've added a flag to switch it on; and switched it on by default in
the container.
I also implemented `Zone.DeleteRecordsFor(ident)`, which removes all
records for a particular container.
One minor change to the structure of the code is that the Zone is now
constructed *outside* the server, and given to it and the updater.
2014-10-16 15:38:32 +01:00
Bryan Boreham
8521fdea0e
Reply with array of addresses for delegated query
2014-10-10 16:31:09 +01:00
Bryan Boreham
b5214f65e7
Forward DNS requests that aren't for our 'weave' domain
2014-10-10 15:41:09 +01:00
Bryan Boreham
dbc77b2943
Don't crash on nil (default) interface
2014-10-08 14:13:05 +01:00
Bryan Boreham
d234fe9506
Move handleMDNS into server file
2014-10-08 12:31:20 +01:00
Bryan Boreham
37924f9f9b
Refactor into separate client and server classes
2014-10-08 11:30:42 +01:00