Thomas Waldmann
13cf70baf6
implement host staleness level, management script to check whether host IP is being updated
2014-11-21 11:00:59 +01:00
Thomas Waldmann
015ad71945
fix 2 translatable strings
2014-11-17 21:37:03 +01:00
Thomas Waldmann
b8e37e904d
register api auth errors/success in the host record, display auth success/failure in host view, partially fixes #176
2014-11-16 00:04:27 +01:00
Thomas Waldmann
536a5f5d9d
add secondary nameserver, prefer it for queries, add migration, fixes #175
2014-11-15 22:42:13 +01:00
Thomas Waldmann
2e53ce8e4a
fix typos
2014-11-15 22:27:04 +01:00
elnappo
4ac7db1340
add verbose names to models and model fields
2014-11-09 12:27:54 +01:00
Thomas Waldmann
57bf826756
remove abusive hosts from dns via post_save signal
2014-10-27 23:06:08 +01:00
Thomas Waldmann
7344f7e284
quick fix for py3 compatibility
2014-09-26 02:07:58 +02:00
Thomas Waldmann
8c25bdf14d
show related hosts' ipv4/v6 addr from nameserver
2014-09-26 00:16:52 +02:00
Thomas Waldmann
3b4669771a
rather use PositiveSmallIntegerField for netmasks
2014-09-25 23:47:48 +02:00
Thomas Waldmann
27fe20da18
make netmasks / prefix lengths configurable in host record
2014-09-25 23:40:52 +02:00
Thomas Waldmann
4280728bfa
add comments for related hosts
2014-09-25 22:05:14 +02:00
Thomas Waldmann
4d70a77ab8
add pre_delete handler for RelatedHost to remove related hosts from DNS
2014-09-25 20:40:14 +02:00
Thomas Waldmann
c1f2f91dc6
add user interface for related hosts
2014-09-25 20:15:18 +02:00
Thomas Waldmann
fa640706f5
add related hosts functionality, to update host records based on main host network address + interface id
...
this is esp. useful for v6 hosts, where your provider might give you a changing prefix (we assume /64), but your interface ids stay the same.
but same mechanism also principally works for v4 (we assume /29), except that you usually do not get a v4 network where the network address is changing.
and when it comes to dynamic addresses, many people only get 1 ipv4 address anyway. the related host could then be used for aliaseses with ifid == 0 for all aliases.
2014-09-23 00:48:54 +02:00
Thomas Waldmann
a064ba1961
rename domain_blacklist_validator to host_blacklist_validator
2014-09-21 22:48:51 +02:00
Thomas Waldmann
522911f6f8
rename BlacklistedDomain to BlacklistedHost, add migration
2014-09-21 22:47:05 +02:00
Thomas Waldmann
5fe8f13015
rename some model attributes, add migration
...
Domain.domain to Domain.name
Host.subdomain to Host.name
BlacklistedDomain.domain to BlacklistedDomain.name_re
2014-09-21 22:31:26 +02:00
Thomas Waldmann
556194ca3f
save latest client/server result to model
2014-09-03 16:26:04 +02:00
Thomas Waldmann
1802b91f68
rename methods dealing with client/server "fault" to more general "result"
2014-09-03 15:34:31 +02:00
Thomas Waldmann
fbbe0ad723
translate model fields' help_text
2014-09-03 14:29:54 +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
f26ae31882
s/ssl_update_v4/tls_update_v4/g (and same for v6)
...
SSL is the old/outdated name. Since 1999, it's called TLS.
Changed model field names. Added a schema migration to rename the DB columns.
Note: the schema migration also adds/removes the index introduced in cs 32289ebb183907e8618ff251dd5846fd00fe9423
2014-05-30 02:03:48 +02:00
Thomas Waldmann
070a1445be
s/ssl/secure/g
...
SSL is the old/outdated name. Since 1999, it's called TLS.
Changed some API params.
2014-05-30 01:28:34 +02:00
Thomas Waldmann
46008bf2cd
s/SSL/TLS/g (almost)
...
SSL is the old/outdated name. Since 1999, it's called TLS.
In this changeset, I did the mostly harmless changes (UI, logs, docs).
2014-05-30 01:10:33 +02:00
Thomas Waldmann
32289ebb18
index subdomain and domain together (as they are only unique together also)
2014-05-29 17:19:08 +02:00
Thomas Waldmann
9341df05bb
optimize filter_by_fqdn(), rename to get_by_fqdn()
...
as we precisely expect 1 result (0 or more than 1 are error cases), use .get() instead of .filter().
avoid usage of len().
maybe this is a little more efficient than before.
2014-05-29 15:25:38 +02:00
Thomas Waldmann
400259c758
get_ip: if there is no A/AAAA record, anwer "none" (anwer "error" only in real error cases)
2014-01-22 14:03:36 +01:00
Thomas Waldmann
ba977193ce
Merge branch 'master' into py3-port
...
Conflicts:
nsupdate/main/_tests/test_main.py
2013-12-24 21:31:40 +01:00
Thomas Waldmann
0df4efce1c
add/fix some module-level docstrings
2013-12-15 17:09:22 +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
088c53e78b
fix: add default=False to BooleanFields (otherwise it might complain about "not NULL")
2013-12-07 21:59:00 +01:00
Thomas Waldmann
866ddf3bea
add available, abuse and abuse_blocked flags to Host, show on UI, script to reset flags
...
there is an issue with south and sqlite - it doesn't handle migrations that add BooleanField columns with defaults.
just use the faults script to set the flags to their correct default after migrating with south.
2013-11-30 12:32:03 +01:00
Thomas Waldmann
7500ba363e
Host.get_ip* - reduce code duplication
2013-11-30 10:07:46 +01:00
Thomas Waldmann
996a398b46
models: use shorter unicode representations
2013-11-29 11:13:59 +01:00
Thomas Waldmann
2aeb2a61f8
service updater (host configs): add (give|accept)_(ipv4|ipv6) fields
2013-11-29 02:11:55 +01:00
Thomas Waldmann
aa610e9c3a
implement "update other services", with tests, no ui yet
...
(can be used when adding the records via django admin)
2013-11-26 08:10:05 +01:00
Thomas Waldmann
e9605535b8
add counters for client and server faults (per host)
2013-11-24 11:42:59 +01:00
Thomas Waldmann
087c1d2c93
deduplicated fqdn lookup uniqueness check, fixed _update return values (must be Response objects, not bool)
2013-11-24 10:43:15 +01:00
Thomas Waldmann
9cd1b7d9f9
blacklist validator: fix validation error msg
...
do not talk about "domain" if we check a hostname.
also tell it is because of the blacklist.
2013-11-24 09:50:57 +01:00
Thomas Waldmann
d83df3ead1
use get_user_model and AUTH_USER_MODEL
2013-11-24 09:37:47 +01:00
Thomas Waldmann
a1210b21eb
cleanup created_by in models
...
looks like there was some reference to settings.AUTH_USER_MODEL (which is undefined)
brought Host and Domain model in sync for some fields
2013-11-24 08:34:01 +01:00
Thomas Waldmann
9c82ec021f
remove comment from Host __unicode__() for consistency (we do not have the comment in Domain __unicode__() either)
2013-11-24 05:23:20 +01:00
Thomas Waldmann
dd09b6b5af
nameserver update key / secret terminology cleanup
...
key = secret + algorithm
2013-11-24 05:04:07 +01:00
Thomas Waldmann
972a411ef4
make adding a domain workflow more similar to adding a host
...
don't ask for the secret in the first form, just autocreate one and show the configuration example with it.
2013-11-24 04:14:31 +01:00
Thomas Waldmann
ed074dd33b
catch exception when trying to delete a host we are not allowed to modify anyway
2013-11-23 02:57:15 +01:00
Thomas Waldmann
ab421fb686
models: use sane field lengths
...
for unique fields there seems to be a limit of 255 chars (not: 256)
some fields are much less than we initially had
2013-11-23 02:51:18 +01:00
Thomas Waldmann
d6b5041573
a real nic update api test, using basic auth
...
generate_secret was modified to support giving a secret (not generating a random one), so it matches the test database
add a User and a Host to the test db
2013-11-16 01:25:05 +01:00
Thomas Waldmann
cc7b22d63f
more help texts
2013-11-08 08:03:12 +01:00
Thomas Waldmann
c3ec4c5a50
Fix/generalize ns update secret generation. Reduce code duplication. Fixes #74 .
2013-11-06 02:21:12 +01:00