Alvaro Saurin
34e7996f2f
Show some IPAM status at /status/ipam
2015-11-26 17:23:47 +00:00
Alvaro Saurin
eb79711e0a
Added flow misses count
2015-11-19 15:05:16 +01:00
Alvaro Saurin
03ce6052cc
Updated docs
2015-11-19 14:54:37 +01:00
Alvaro Saurin
7992bf4177
DNS upstream servers report
2015-11-19 14:54:23 +01:00
Alvaro Saurin
ddb390d5ec
Forbid traffic to the Weave port from other containers
...
Make sure we have the Docker bridge IP before adding/removing iptables rules
2015-11-19 14:46:28 +01:00
Alvaro Saurin
0aca173e96
Add an iptables rule for letting weaveDNS requests in
2015-11-04 14:00:26 +01:00
Alvaro Saurin
f04ae91c82
Add container FQDN to /etc/hosts
2015-10-19 21:51:38 +02:00
Alvaro Saurin
4350b6402f
Updated docs
2015-10-16 11:47:07 +02:00
Alvaro Saurin
5d2892f6fc
Test we respect --add-host when rewriting /etc/hosts
...
Simplify some tests
2015-10-16 11:47:07 +02:00
Alvaro Saurin
91f27ddd66
Removed weavehosts
2015-10-16 11:47:07 +02:00
Alvaro Saurin
6a674d0d67
Add hosts when attaching
2015-10-16 11:47:07 +02:00
Alvaro Saurin
0d165487b8
Rewrite /etc/hosts in the containers
2015-10-16 11:47:07 +02:00
Alvaro Saurin
c50c90ea8d
Try to compress too long replies (when forwarding).
2015-08-17 18:50:16 +02:00
Alvaro
0a80fdcc1d
Merge pull request #1312 from weaveworks/circle
...
Add sudo apt-get update to circle.yml
2015-08-17 13:52:00 +02:00
Alvaro
475daa82b3
Merge pull request #1273 from weaveworks/1270_mdns_result_race
...
ignore DuplicateError when inserting mDNS answer in zone
2015-08-10 11:15:47 +02:00
Alvaro
976641c3b6
Reverted: Fixed typo
2015-07-22 12:17:29 +02:00
Alvaro
2f80f12001
Fixed typo
2015-07-22 12:14:38 +02:00
Alvaro
7e34ec61f6
Merge pull request #1142 from weaveworks/1113-recursive-dns
...
Closes #1113
2015-07-15 13:42:59 +02:00
Alvaro
a1ac0313e5
Merge pull request #1065 from weaveworks/gossipdns
...
Gossip-based DNS embedded in the router.
2015-07-14 18:30:16 +02:00
Alvaro Saurin
4c519fc761
Smoke tests
2015-07-14 15:12:40 +02:00
Alvaro Saurin
efb0ead9ad
Resolve unqualified names in the local WeaveDNS domain
...
Unit tests
2015-07-14 10:46:41 +02:00
Alvaro
33921c2cfe
Merge pull request #1073 from weaveworks/971_check_container_alive_in_api
...
make container aliveness check part of the ipam & dns API
2015-07-07 16:08:40 +02:00
Alvaro Saurin
f6ffd604dd
Removed all the imports from "code.google.com"
2015-07-02 13:32:52 +02:00
Alvaro Saurin
d086867c0c
make negative TTL default to same value as TTL
2015-06-17 10:17:12 +02:00
Alvaro Saurin
c697d2a8f9
Ignore empty queries (sent when the server is being shut down)
2015-06-16 20:54:51 +02:00
Alvaro Saurin
f4507e7252
Change read-locks for read/write-locks
2015-06-16 16:02:49 +02:00
Alvaro Saurin
8a935e3cb2
Launch WeaveDNS with "launch_dns_on"
2015-06-16 15:29:36 +02:00
Alvaro Saurin
a1cb5b16a6
Run the unit tests with GOMAXPROCS=4
2015-06-16 14:58:53 +02:00
Alvaro Saurin
8621aa7cbf
Launch WeaveDNS with --debug when DEBUG is set
2015-06-16 14:58:53 +02:00
Alvaro Saurin
ba2f6671a6
Removed a couple of Debug.Printf()s
2015-06-15 17:11:27 +02:00
Alvaro
9284366a3d
Merge pull request #917 from bboreham/inercia-flush-sched-queue
...
Return of the Fix for the zone refresh unit test
2015-06-15 15:45:57 +02:00
Alvaro Saurin
2eb39d962a
Use the scheduled queue for refreshing names
...
Some minor time tweaks...
2015-06-10 22:56:40 +02:00
Alvaro Saurin
d6a9fc57cc
New scheduled queue, for scheduling calls to callables
2015-06-10 22:56:38 +02:00
Alvaro Saurin
698d352322
Check with Docker whether the container is really running
2015-06-10 22:27:49 +02:00
Alvaro Saurin
1889a4a87f
Simplify the arguments passed to nameserver/http.go:ServeHTTP() (by using information found in some other objects we are already passing, like the server)
2015-06-10 22:27:49 +02:00
Alvaro Saurin
5cb2347f77
Use our own Docker client
2015-06-10 22:27:47 +02:00
Alvaro Saurin
5f4756aa80
Do not overwrite negLocal entries in the cache
...
Unit tests
2015-06-08 13:53:24 +01:00
Alvaro Saurin
bb3dd55a10
Merge branch '0.11'
...
Conflicts:
nameserver/cache_test.go
2015-06-08 13:41:38 +02:00
Alvaro Saurin
8b5df952c9
Do not overwrite negLocal entries in the cache
...
Unit tests
2015-06-05 16:31:57 +02:00
Alvaro Saurin
8a188e23d9
Documented the '--ttl' argument
2015-05-29 12:56:45 +02:00
Alvaro Saurin
343e9b1f5a
Provide the '--neg-ttl' argument too...
2015-05-29 12:56:45 +02:00
Alvaro Saurin
858a6dd253
Make the TTL returned for local answers configurable.
2015-05-29 12:50:18 +02:00
Alvaro
5c1297d560
Merge pull request #775 from rade/736_load_balancing_example
...
add load balancing example
2015-05-28 16:01:55 +02: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
91cbd75f92
Unit test for cache expirations
2015-05-28 11:09:07 +02:00
Alvaro Saurin
156f5be4d4
Unit test for cache invalidations as a result of AddRecord()/DeleteRecord()/etc...
2015-05-28 11:09:07 +02:00
Alvaro Saurin
0a803c61ff
Smoke tests
2015-05-28 10:05:22 +02:00
Alvaro Saurin
b8d4068a26
Force 8.8.8.8 as the DNS server in VirtualBoxes
2015-05-28 10:05:22 +02:00
Alvaro Saurin
6d2317d60e
Silence "golint" errors
...
Silence "go vet" errors
Run goimports
2015-05-28 10:05:22 +02:00
Alvaro Saurin
40d7b2a87d
Dump the zone database status on "weave status"
...
Fix the smoke test by updating the regexps used for parsing "weave status" output
2015-05-28 09:12:53 +02:00
Alvaro Saurin
32627eccbf
Fix the timeout for the fallback server client connection
2015-05-28 09:12:53 +02:00
Alvaro Saurin
6f7e385c74
Unit tests for multiple IPs through the HTTP API
2015-05-27 14:54:30 +02:00
Alvaro Saurin
954c5cb394
Limit the number of answers we provide to users.
2015-05-27 14:54:29 +02:00
Alvaro Saurin
2d919d0a5f
Remove duplicates in answers
2015-05-26 21:27:53 +02:00
Alvaro Saurin
c4b07fd44e
Shuffle all the replies, not only the ones from the cache...
2015-05-26 21:24:28 +02:00
Alvaro Saurin
b87b942363
Check we can use our mDNS client with our mDNS server
2015-05-26 21:24:26 +02:00
Alvaro Saurin
5fe0a7fbb2
Make Stop() idempotent
2015-05-26 21:20:44 +02:00
Alvaro Saurin
a159ac44d9
Unit tests for cache invalidations as a result of names updates
2015-05-26 21:20:44 +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
6fc6afa6a7
Unit tests for the zone lookups and names updates
2015-05-26 21:17:24 +02:00
Alvaro Saurin
64090d0b95
Improved mocks
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
ea808bd08b
Domain lookups, using mDNS
...
Added DomainLookup* to the Zone interface
2015-05-26 21:14:09 +02:00
Alvaro Saurin
da2d66a6df
New zone database
2015-05-26 21:14:06 +02:00
Alvaro Saurin
c1d124df4c
Interfaces for the mDNS client and server
2015-05-26 21:11:34 +02:00
Alvaro
de46758eba
Merge pull request #739 from weaveworks/revert-615-weave-583-2
...
Revert "Background updates for names in the Zone database"
2015-05-26 13:07:24 +02:00
Alvaro
21a1cd0469
Revert "Background updates for names in the Zone database"
2015-05-26 12:56:44 +02:00
Alvaro Saurin
ee6bbe7925
Smoke tests
2015-05-26 11:30:40 +02:00
Alvaro Saurin
cfcc08a914
Limit the number of answers we provide to users.
2015-05-26 11:30:35 +02:00
Alvaro Saurin
0cb6a6269d
Unit tests for multiple IPs through the HTTP API
2015-05-26 10:53:13 +02:00
Alvaro Saurin
db0ef5cf5c
Remove duplicates in answers
2015-05-26 10:53:13 +02:00
Alvaro Saurin
174b47d1db
Shuffle all the replies, not only the ones from the cache...
2015-05-26 10:53:13 +02:00
Alvaro Saurin
87a2886539
Refactored the mocked clock.
...
Refactored some common code in the Zone lookups
2015-05-26 10:53:12 +02:00
Alvaro Saurin
04e4ef214c
Check we can use our mDNS client with our mDNS server
2015-05-26 10:53:12 +02:00
Alvaro Saurin
2783f02790
Make Stop() idempotent
2015-05-26 10:53:12 +02:00
Alvaro Saurin
761eb787ff
Unit tests for cache invalidations as a result of names updates
2015-05-26 10:53:12 +02:00
Alvaro Saurin
6fa2f2142f
Command line arg for changing the number of background updaters
...
Default number of background updaters raised to 4
2015-05-26 10:53:12 +02:00
Alvaro Saurin
72b55c82ec
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 10:53:12 +02:00
Alvaro Saurin
44cdf3bca3
Command line option for disabling the cache
2015-05-26 10:53:12 +02:00
Alvaro Saurin
fe672eae63
Unit tests for the zone lookups and names updates
2015-05-26 10:53:12 +02:00
Alvaro Saurin
267fddc474
Improved mocks
2015-05-26 10:53:12 +02:00
Alvaro Saurin
2b6388359b
Background updates for names
2015-05-26 10:53:12 +02:00
Alvaro Saurin
a2dad42ef6
Domain lookups, using mDNS
...
Added DomainLookup* to the Zone interface
2015-05-26 10:53:12 +02:00
Alvaro Saurin
8a509168ee
New zone database
2015-05-26 10:53:12 +02:00
Alvaro Saurin
9c48c83701
Interfaces for the mDNS client and server
2015-05-26 10:53:12 +02:00
Alvaro Saurin
f723d5afd8
Move the router to the new signals handler
2015-05-06 15:07:36 +02:00
Alvaro Saurin
dbc4b68301
Use a general signals handler
2015-05-06 15:06:54 +02:00
Alvaro Saurin
ba98135e03
Return NOTIMP for some unimplemented query types, NXDOMAIN otherwise
2015-05-05 21:31:11 +02:00
Alvaro Saurin
3bdfa9b050
Make lint happy
2015-04-28 12:05:24 +02:00
Alvaro Saurin
42fa953053
Minor: logs messages...
2015-04-28 12:05:24 +02:00
Alvaro Saurin
18b7110c31
Stringer'ify some structs
2015-04-28 12:05:24 +02:00
Alvaro Saurin
4aa5e0a97e
Minor: logging
2015-04-28 12:05:24 +02:00
Alvaro Saurin
ce12b36433
Unit test for multiple answers from a mDNS server
2015-04-28 12:05:21 +02:00
Alvaro Saurin
9e5fe255a5
Improved mocks
2015-04-28 12:02:51 +02:00
Alvaro Saurin
d7c154ea41
Removed the "now" parameters and use an external clock provider
2015-04-28 12:02:49 +02:00
Alvaro Saurin
7de2080b9e
Added a TTL to the zone records
2015-04-28 11:59:21 +02:00
Alvaro Saurin
22a229c305
Utility function raddrToIP()
2015-04-28 11:52:08 +02:00
Alvaro
c2f55fc836
Merge pull request #609 from rade/combine_nameserver_query_handlers
...
refactor: eliminate duplication in nameserver query handlers
2015-04-27 19:50:14 +02:00