Matthias Radestock
c93e789b6b
use an automatically assigned port for http tests
...
instead of random port, which can clash
Fixes #720 .
2015-05-29 10:21:41 +01:00
Alvaro Saurin
7202f7e1d6
Restored "fallback" argument for forcing a fallback server (used for testing/debugging)
2015-05-28 12:57:24 +02:00
Alvaro Saurin
6d2317d60e
Silence "golint" errors
...
Silence "go vet" errors
Run goimports
2015-05-28 10:05:22 +02:00
Alvaro Saurin
954c5cb394
Limit the number of answers we provide to users.
2015-05-27 14:54:29 +02:00
Alvaro Saurin
836d012459
Command line arg for changing the number of background updaters
...
Default number of background updaters raised to 4
2015-05-26 21:20:44 +02:00
Alvaro Saurin
07d15092aa
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...)
2015-05-26 21:20:42 +02:00
Alvaro Saurin
a23462e830
Command line option for disabling the cache
2015-05-26 21:17:24 +02:00
Alvaro Saurin
dbce56ed30
Background updates for names
2015-05-26 21:17:21 +02:00
Alvaro Saurin
da2d66a6df
New zone database
2015-05-26 21:14:06 +02:00
Ilya Dmitrichenko
366adfb8f9
Move WeaveDNS docs to docs.weave.works ( close #471 )
2015-05-13 10:21:51 +01:00
Andrew Kennedy
633d539b60
New commands to add and remove DNS entries
...
- Commands dns-add and dns-remove added to weave script
- Updated documentation for WeaveDNS
- Added test script for dns-add and dns-remove
- Added IP address functions matching existing CIDR ones
2015-05-07 12:13:59 +01:00
Alvaro Saurin
dbc4b68301
Use a general signals handler
2015-05-06 15:06:54 +02:00
Alvaro Saurin
56859a9c30
Run gofmt
2015-04-23 13:01:29 +02:00
Alvaro Saurin
58c8945b32
Support "insistent" queries in the mDNS client, used for obtaining all possible responses from mDNS servers.
...
Support for multiple responses from Lookup*() methods
Support for multiple records when building packets with make*() methods
Use a common "ZoneRecord" interface for structs that contain names and IPs
2015-04-23 13:01:29 +02:00
Alvaro Saurin
6fd90d45a1
Renamed --localDomain to --domain
2015-04-20 20:14:20 +02:00
Alvaro Saurin
cc4ba53d1b
Minor improvements in the docs
2015-04-20 20:14:04 +02:00
Alvaro Saurin
084e6d6119
Documented the local domain argument
2015-04-20 17:52:16 +02:00
Tom Wilkie
f735082d95
Fix gofmt errors in nameserver.
2015-04-17 11:42:29 +00:00
Adam Harrison
7f434d71e1
Merge pull request #532 from inercia/weave-225-fix-2
...
Fix in WeaveDNS: do not modify cache when getting a reply
2015-04-13 14:20:40 +01:00
Bryan Boreham
d32f328c24
Simplify printing
2015-04-10 14:46:31 +01:00
Alvaro Saurin
7811e2b470
Improved log messages
2015-04-09 16:19:05 +02:00
Bryan Boreham
8a82f368d0
Update repository name from zettio to weaveworks
2015-04-08 16:35:52 +01:00
Bryan Boreham
68096b0437
Generalize updater.go
2015-04-01 16:48:11 +01:00
Matthias Radestock
10f37db9da
tidy up DNSServer fields
...
- make Zone, Iface and Upstream public - this is safe and makes sense
since all are immutable, and the former two are passed to the
constructor and are thus known anyway, and the latter is derived
from external information
- remove IfaceName - we can just use Iface instead
- log Upstream on startup
2015-03-31 12:04:31 +01:00
Matthias Radestock
de557a3e03
introduce WEAVEDNS_DOCKER_ARGS
...
same purpuse as WEAVE_DOCKER_ARGS, except for weavedns
This allows us to get rid if the -fallback option since
WEAVEDNS_DOCKER_ARGS="--dns=..." has the same effect.
Closes #487 .
2015-03-31 11:50:41 +01:00
Matthias Radestock
2500bc210a
cosmetic: more linting
2015-03-27 01:21:36 +00:00
Matthias Radestock
1ad950f177
cosmetic: more linting
2015-03-27 01:12:16 +00:00
Adam Harrison
efb7c0f1bc
gofmt
2015-03-26 10:54:46 +00:00
Alvaro Saurin
9dcec8ca16
basic DNS cache
...
unit tests
2015-03-24 12:44:01 +01:00
Adam Harrison
fcab4ee239
Truncate container IDs to twelve characters
2015-03-18 17:56:58 +00:00
Adam Harrison
6c5dbe0d01
Address documentation comments
2015-03-18 14:57:29 +00:00
Adam Harrison
66f4fd94e3
Update documentation
2015-03-18 13:39:16 +00:00
Adam Harrison
0f492b563e
Fix test compilation
...
Tests weren't compiling due to change of ListenHttp() signature. Fixed
for now by reintroducing domain parameter in addition to server, as this
allows the HTTP tests to pass in a nil server parameter. In the long
term DNSServer should probably become an interface so we can mock it
easily in such a scenario.
2015-03-17 17:42:16 +00:00
Adam Harrison
c36543a247
Include DNS server config in status
2015-03-17 15:41:01 +00:00
Adam Harrison
50f6402774
Include DNS version and domain in status
2015-03-17 14:28:26 +00:00
Adam Harrison
8f8719c298
Correct typo in log message
2015-03-16 17:36:56 +00:00
Matthias Radestock
123e8bbb28
reduce likelihood of IP clashes in tests & examples
...
by using the 10.2 range, which is not one used by docker and also is
less likely than 10.0 to be used by something else.
Fixes #402 .
2015-03-09 20:51:26 +00:00
Michael Bridgen
1d929263ac
Default the localDomain argument from the CLI
...
Otherwise, the HTTP listener can be given an empty string, and refuse
to record any hosts.
2015-02-27 16:58:47 +00:00
Michael Bridgen
35a8a390e7
Merge branch 'weave-366' of https://github.com/inercia/weave into pr394
2015-02-27 15:10:23 +00:00
fl0yd
49cb2758a4
Corrected a misspelling in readme
2015-02-27 08:34:24 -06:00
Alvaro Saurin
007873a402
zettio/weave#366 - keep the DNSServerConfig inmutable
2015-02-27 12:22:08 +01:00
Alvaro Saurin
0bc3e333f8
zettio/weave#366 - minor: fixed a typo and removed some superfluous code
2015-02-26 10:51:48 +01:00
Alvaro Saurin
bbd69170f9
zettio/weave#366 - improved configuration for th DNSServer, where we can specify the local domain name among other things... (missing some unit tests for this customized local domain)
2015-02-26 10:51:48 +01:00
Alvaro Saurin
c575023681
zettio/weave#362 - command line arg for using a specific fallback DNS server
2015-02-23 13:17:54 +01:00
Alvaro Saurin
ea1c3e8219
zettio/weave#362 - fix: = instead of :=
2015-02-23 13:17:54 +01:00
Alvaro Saurin
5dd475b2e5
zettio/weave#362 - fix DNSServer initialization
...
removed a couple of goroutines spawns...
2015-02-23 13:17:54 +01:00
Alvaro Saurin
9c7ffd9b81
zettio/weave#362 - improve the unit tests for the TCP server by checking if we get all the responses with TCP when a previous UDP query resulted in a truncated response.
2015-02-23 13:17:54 +01:00
Alvaro Saurin
3be5600383
zettio/weave#362 - reorganize the DNS server code, so it looks like the mDNS server, with a proper class with Start() and so...
...
Listen on TCP on port 53 by default
2015-02-23 13:17:54 +01:00
Matthias Radestock
9c3d509b10
cosmetics
...
suggested by linter
2015-02-03 14:46:35 +00:00
Michael Bridgen
08eb90c938
No longer is local_ip welcome in weaveDNS
...
(and point at weaveDNS's readme rather than the blog post, which is
out of date)
2015-01-26 11:49:02 +00:00