23 Commits

Author SHA1 Message Date
Thomas Waldmann
fe7b1bc0cb 1.1.1.1 == one.one.one.one 2018-09-30 20:53:26 +02:00
Thomas Waldmann
b2e2ddf949 fix reverse dns lookup tests
not sure why, but the old ones were failing half of the time.
let's try the latest shit from cloudflare. :)
2018-04-25 18:45:04 +02:00
Thomas Waldmann
cf2c46e612 use FQDN typed params in api, remove unused parse_name (which was problematic anyway) 2014-08-30 18:27:21 +02:00
Thomas Waldmann
f13d985f4a add FQDN type to use instead of str to keep host and domain separate 2014-08-30 16:08:10 +02:00
Thomas Waldmann
852e541778 make the tests use a test zone
for the dnstools tests, tests were already changed to use a random test host in the test zone,
so parallel tests runs should not use the same hostnames.

test_api tests still use same host names, though
2013-12-25 03:38:08 +01:00
Thomas Waldmann
711aba237f python 3.3 port
not much tested yet, be careful
2013-12-14 00:35:29 +01:00
Thomas Waldmann
0e8f318628 add reverse dns lookup code 2013-11-27 07:14:39 +01:00
Thomas Waldmann
ae9c2f29d0 more tests, better coverage 2013-11-21 04:02:16 +01:00
Thomas Waldmann
24b687960e deal with "nameserver not available" and "peer bad signature" in same way as with dns update errors, 2013-11-10 07:04:46 +01:00
Thomas Waldmann
57641f3b9a allow single-host update secrets, make dnstools tests work for everybody
the nsupdate.info zone is configured to allow updating test.nsupdate.info with a non-secret key used for the tests.
we also have a test that tries to update another host with that key and checks that this fails.

change the tests so they only use test.nsupdate.info (if possible).

single-host update secrets need a Domain record for the fqdn of this single host, the fqdn is tried first, before it tries the origin zone.
2013-11-10 05:52:41 +01:00
Thomas Waldmann
4fadb5de82 dnstools tests: always use the same TEST_HOST 2013-11-09 23:19:05 +01:00
Thomas Waldmann
724f35225e move test settings to test_settings.py, add FIXME for resolver search list
make SECRET_KEY obviously non-secret and non-random + document it should be secret/random
2013-10-27 07:20:43 +01:00
Thomas Waldmann
49693121ea use zones/nameserver IPs/update keys from DB, logging (thanks to asmaps)
remove unneeded stuff from settings
(we still need some in conftest.py for the tests, though)
init DB for tests via conftest.py
more update algorithm choices
give origin zone (if we already know it) to dnstools functions
new views: DomainOverview, DeleteDomain
unify deletion templates using delete_object.html
add django-extensions
2013-10-18 15:30:17 -07:00
Thomas Waldmann
89f743c1b0 removed test skips, all works now 2013-10-17 15:58:25 -07:00
Bastian Blank
d2eab62ac4 Move all stuff into own top-level package 2013-10-17 23:59:07 +02:00
Thomas Waldmann
1924888b37 reorder imports: stdlib, other libs, django, nsupdate stuff (views, etc.) 2013-10-03 19:26:39 +02:00
Thomas Waldmann
074233430c dnstools: implement additional functions: add and delete, with tests. 2013-09-29 17:21:22 +02:00
Thomas Waldmann
a769b4d8ed cleanup settings access 2013-09-28 22:04:52 +02:00
Thomas Waldmann
be3a124fbc implement intelligent updater (only sends ns update if IP really changed) 2013-09-28 17:05:27 +02:00
Thomas Waldmann
a865bb9f32 tests: use relative imports, make tests a package 2013-09-28 15:56:35 +02:00
Thomas Waldmann
3af80a631d docstrings: some cleanup 2013-09-28 15:36:27 +02:00
Thomas Waldmann
f4172a306a dns: implement updating the master server 2013-09-28 15:29:16 +02:00
Thomas Waldmann
d71122aa1c dns: implement querying directly the master server 2013-09-28 13:47:49 +02:00