Thomas Waldmann
6bf1f57fc1
deal with not responding nameservers (offline or unreachable)
...
if a nameserver does not respond, we flag it in the database
(available = False) and stop talking to it for 5 minutes.
after 5 minutes, we flag it available = True again and retry talking to it
(and if not successful, flag it as unavailable again).
this avoids a unresponsive UI as we do a lot of ns queries from the templates
to get v4 and v6 addresses of our hosts from master nameservers.
we log a warning when setting unavailable and a info when setting available.
2013-10-27 05:14:47 +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
7176599245
dnstools: add/delete/update pass-through origin now
2013-10-08 15:39:45 +02:00
Thomas Waldmann
ee4ca24f95
dnstools: fixed docstring
2013-10-08 15:20:08 +02:00
Thomas Waldmann
2dfc9707ca
dnstools: update docstrings about ValueError exceptions
2013-10-03 20:47:25 +02:00
Thomas Waldmann
2982bd6e30
new check_ip() validates if a str is a ip addr and also determines address family, deduplicate code
2013-10-03 20:39:55 +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
a2afc6a253
add missing param to docstring
2013-10-03 17:59:55 +02:00
Thomas Waldmann
71e937c0da
use search list with basedomain from settings
2013-09-30 01:58:38 +02:00
Thomas Waldmann
02099fe810
prepare using multipe nameservers / basedomains
...
currently lookup is from a dict with just the values from settings.
2013-09-30 00:52:23 +02:00
Thomas Waldmann
074233430c
dnstools: implement additional functions: add and delete, with tests.
2013-09-29 17:21:22 +02:00
Thomas Waldmann
726a5696bd
added docstring
2013-09-29 02:00:15 +02:00
Thomas Waldmann
ac4860f54a
pep8 fixes
2013-09-29 01:23:27 +02:00
Thomas Waldmann
d558e2ece2
store update_secret as salted sha1 (use crypto code from django), fix bug: we also need to catch NoAnswer, not just NXDOMAIN.
...
NoAnswer == there is a record, but not of the type (A or AAAA) we requested.
NXDOMAIN == there is no record at all.
2013-09-29 00:34:47 +02:00
Thomas Waldmann
a769b4d8ed
cleanup settings access
2013-09-28 22:04:52 +02:00
Thomas Waldmann
add5e6a379
implemented update api (still without checking the DB), misc. cleanups
2013-09-28 20:39:33 +02:00
Thomas Waldmann
d71b3b8346
fix typo
2013-09-28 17:17:12 +02:00
Thomas Waldmann
be3a124fbc
implement intelligent updater (only sends ns update if IP really changed)
2013-09-28 17:05:27 +02:00
Fabian Faessler
dcd0be9e46
Merge branch 'master' of github.com:asmaps/nsupdate.info
2013-09-28 15:44:21 +02:00
Fabian Faessler
8f2209286d
moved the dns settings info the settings.py
2013-09-28 15:44:09 +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