99 Commits

Author SHA1 Message Date
Thomas Waldmann
a210936dcf use now() from django.utils.timezone - it is utc and not naive 2013-10-27 07:29:58 +01:00
Thomas Waldmann
4cf62af8ab rename Domain field available_for_everyone to public (so it is not confused with "available" field)
"public" field means that this zone can be used by every user (not just the owner) to create hosts there

"available" field means that the nameserver is operating and reachable
2013-10-27 05:28:30 +01:00
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
Bastian Blank
b161265cad Use GenericIPAddressField to allow IPv6 2013-10-17 23:59:07 +02: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
c9e21202cc remove outdated TODO about hashing the update_secret 2013-10-03 17:42:58 +02:00
Thomas Waldmann
51caaea41f use newstyle classes 2013-10-03 17:21:18 +02:00
Thomas Waldmann
42a89b4b42 fix pep8, fix indentation 2013-10-03 03:22:09 +02:00
Fabian Faessler
ec4e6c5df7 added Exceptions 2013-09-30 01:40:31 +02:00
Fabian Faessler
c00345df20 some overview ui changes 2013-09-29 23:49:18 +02:00
Arne Schauf
df971fe8e9 more fields 2013-09-29 22:48:09 +02:00
Fabian Faessler
beafe06852 added logic for last_api_update. field updated with Hosts.poke() method 2013-09-29 21:00:08 +02:00
Fabian Faessler
053f2f9a65 added last_api_update field and migrated db 2013-09-29 20:50:33 +02:00
Fabian Faessler
e1cad04b1e fixed IPv6 display in the overview table 2013-09-29 20:45:55 +02:00
Fabian Faessler
a4e3ab4e58 fixed uncaptured exceptions NXDOMAIN. increased table size in the overview 2013-09-29 20:43:48 +02:00
Fabian Faessler
0db1697898 added ns query call to get the IP from hosts 2013-09-29 20:39:07 +02:00
Fabian Faessler
e917680144 post_delete fix 2013-09-29 20:30:10 +02:00
Fabian Faessler
750b264fdf Merge branch 'master' of github.com:asmaps/nsupdate.info 2013-09-29 19:58:15 +02:00
Fabian Faessler
58159fba0c generate secret view and logic. host view ui update. 2013-09-29 19:58:08 +02:00
Arne Schauf
13511a7982 fqdn fix 2013-09-29 18:15:15 +02:00
Fabian Faessler
43ec24bcf8 typo in model 2013-09-29 17:45:50 +02:00
Fabian Faessler
8e66e702f7 added get_fqdn() method to Host model. added post_save signal to delete dns entry when Host object is deleted 2013-09-29 17:43:17 +02:00
Fabian Faessler
3f3e142aa0 added optional attribut to user field in domain model 2013-09-29 16:38:30 +02:00
Arne Schauf
1abe15e9ab pep8 2013-09-29 16:12:19 +02:00
Arne Schauf
4d8a6a76a5 Merge branch 'master' of github.com:asmaps/nsupdate.info
Conflicts:
	nsupdate/main/models.py
	nsupdate/main/views.py
2013-09-29 16:07:33 +02:00
Arne Schauf
34a8bbe6b8 pep8 and so on 2013-09-29 16:03:56 +02:00
Thomas Waldmann
28e17fdeb4 redundant parens, use tuple 2013-09-29 15:44:29 +02:00
Fabian Faessler
dcd78ac304 pep8 fixes 2013-09-29 15:37:58 +02:00
Thomas Waldmann
105315548a remove resolved TODO, the update_secret is hashed using django's "sha1" hasher (salted sha1) 2013-09-29 15:13:11 +02:00
Fabian Faessler
844f08137c merge conflict again in models.py 2013-09-29 14:36:29 +02:00
Fabian Faessler
2ffabb22b0 merge conflict in models.py 2013-09-29 14:35:37 +02:00
Fabian Faessler
e1c87a1f42 Merge branch 'master' of github.com:asmaps/nsupdate.info
Conflicts:
	nsupdate/main/models.py
2013-09-29 14:33:58 +02:00
Fabian Faessler
f25ed3cdee removed proxy user, because solution was not working. Made id session based. please work now :'( 2013-09-29 14:33:24 +02:00
Arne Schauf
f56b8a8376 actually added the validator and made created_by in blacklist optional 2013-09-29 14:21:23 +02:00
Arne Schauf
d44c8a7e90 made home template and added admin link to nav 2013-09-29 14:08:22 +02:00
Fabian Faessler
09da9a4036 changed User to ProxyUser 2013-09-29 14:07:24 +02:00
Fabian Faessler
5537a12c1b changed User to ProxyUser 2013-09-29 13:53:35 +02:00
Arne Schauf
6a8707e2c6 validator for subdomain 2013-09-29 13:47:02 +02:00
Arne Schauf
332acdf469 divided subdomain and domain (as FK) 2013-09-29 13:36:28 +02:00
Arne Schauf
b088c8e6c0 verbose for fqdn 2013-09-29 13:13:04 +02:00
Thomas Waldmann
ac4860f54a pep8 fixes 2013-09-29 01:23:27 +02:00
Fabian Faessler
80c91e6b4e new favicon 2013-09-29 01:18:28 +02:00
Fabian Faessler
553e02f243 fixed different width in templates 2013-09-29 00:28:31 +02:00
Fabian Faessler
e68aa8cc5f added host view. with broken edit. will be changed to classbased views 2013-09-28 22:17:24 +02:00
Fabian Faessler
eb30914704 added comment field in host. added admin and forms. 2013-09-28 20:01:09 +02:00
Arne Schauf
22eecac4d5 Host model 2013-09-28 18:02:13 +02:00
Arne Schauf
931dde79bb requirements fix and basic django project 2013-09-28 10:44:29 +02:00