119 Commits

Author SHA1 Message Date
Fabian Weisshaar
fe1c697631 fix pep8, fix argparse 2018-01-30 12:37:12 +01:00
Fabian Weisshaar
cbf7027287 already something for Django 2.0 2018-01-30 12:37:12 +01:00
Fabian Weisshaar
f3d2d031b0 add domain name check, fixes #308 2017-05-26 21:50:24 +02:00
TW
ab466a57b2 Merge pull request #241 from hensing/fix-192
closes #192: sort hosts and domains by name
2015-12-29 14:13:53 +01:00
Henning dickten
f510713890 closes #192: sort hosts and domains by name 2015-12-29 14:09:52 +01:00
Fabian Weisshaar
cd2fde484a fixes #168, test updates when a domain is set to available 2015-12-29 13:30:58 +01:00
Thomas Waldmann
ee838aa2da fix #221 2015-12-28 13:35:30 +01:00
Thomas Waldmann
c8d87270b6 do not set A or AAAA record if IFID field is blank
in fact, even delete the A or AAAA record if the field is blank and an update is received.

sometimes it makes sense to have only ipv6 records in DNS if you only have 1 public ipv4.
then you can reach your devices without getting (maybe wrong or not port-forwarded) v4 addresses on lookup.
2015-04-25 17:33:02 +02:00
elnappo
419704618d replace __unicode__() with text_type for python3 2014-12-28 14:52:17 +01:00
elnappo
37bb496e3b dont use unicode_literals 2014-12-28 14:19:24 +01:00
elnappo
ca34ca3e0d
remove all __unicode__() for python3 compatibility 2014-12-06 12:35:20 +01:00
elnappo
75fc8627d7
add python_2_unicode_compatible in models.py #189 2014-12-05 20:33:15 +01:00
elnappo
cbab1a5d17
only show "(unkown)" in overview when hosts has this record, add some trans tags 2014-12-05 19:38:26 +01:00
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