Commit Graph

26 Commits

Author SHA1 Message Date
Eric van der Vlist 7172afa4a2 Support of Docker host names (for NSD) 2020-04-18 09:36:48 +02:00
jeffrey forman 2247f7262e add main functionality for NSD in models.
update the encrypt (save) and decrypt functions to be python3/dnspython friendly
using bytestrings instead of expecting strings.

statistic_port is now control_port.

removed the validations from admin.py because the model fields now provide
for validators of their data.

add creds dir to the settings.py
2019-03-17 20:36:28 -04:00
jeffrey forman 01a2d2382c when retrieving the bindserver object, return the hostname as a string for the object itself 2019-02-14 19:57:17 -05:00
jeffrey forman f9176387ac update to django-2, python3, and based on an alpine container 2019-02-13 20:17:05 -05:00
Jeffrey Forman 1af8f1e31b encrypt TSIG keys using Fernet cryptography library 2017-05-02 20:21:11 -04:00
Daniel Roschka 20d785840b Fixes some python style issues.
No changes in binders functionality are included in this commit, just improved
python style
2015-06-13 12:05:42 +02:00
Daniel Roschka 77eda58f37 Make the port for DNS queries per server configurable.
While it might not be that common to have a DNS server listening on a
non-standard port for DNS queries, it's also useful for local testing.

I used the opportunity to add model migrations as well to enable smooth model
upgrades.
2015-03-27 19:30:03 +01:00
jeffrey forman 19f891c27a fix the text associated with an hmac-md5 tsig key 2015-03-22 14:32:07 -04:00
Jeffrey Forman fb7d27da20 Merge pull request #13 from Dunedan/fix-tsig-algorithms
Fix binder to work with TSIG keys not using dnspythons default algorithm
2015-03-22 14:15:09 -04:00
Jeffrey Forman fb43a9aa5a Merge pull request #12 from Dunedan/fix-errorhandling-for-incorrect-keys
Fixes error handling for broken TSIG keys.
2015-03-22 14:10:32 -04:00
Daniel Roschka a19719a41b Fix binder to work with TSIG keys not using dnspythons default algorithm
binder has been broken to work with signatures created with anything but
dnspythons default TSIG algorithm, which currently is HMAC-MD5.
This commit fixes that by properly using the algorithm stored for the key.
2015-03-22 18:07:06 +01:00
Daniel Roschka 43fe909ec6 Fixes error handling for broken TSIG keys.
The error handling for broken TSIG keys wasn't working for two reasons:
* the import of binascii has been missing, producing a NameError once an
  exception occured
* The exception handler was refering to a non-existant variable key_name.

This commit fixes both issues.
2015-03-22 17:03:50 +01:00
Daniel Roschka 763d132b0f Some small improvements for the models.
* Added help texts to all fields to make adding servers and keys in the admin
  interface more convenient.
* Added a default ordering for servers and keys.
* Added unique constraints, so there can be only on key per name and one server
  per hostname as this has already already been an implicit constraint in the
  code.
2015-03-22 15:47:05 +01:00
Jeffrey Forman f9f9309fe9 beautifulsoup is not a required module for binder itself, remove from models 2014-10-06 13:02:30 -04:00
Jeffrey Forman d8900c4075 convert to using pybindxml for scraping zone/server information from bind in server zone list 2014-01-05 17:50:13 -05:00
Jeffrey Forman 308be6a025 Add integration test for denied zone transfer 2012-12-09 21:22:47 -05:00
Jeffrey Forman d5b2197571 Merge keyutils into a method inside the Key class. Delete keyutils.py 2012-11-30 22:40:58 -05:00
Jeffrey Forman d4d4afdaa1 Add ip info on server list page.
Also clean up imports, standardize on order
2012-11-28 22:09:25 -05:00
Jeffrey Forman 5f2414266a Handle exception when attempting a zone list (xfr) fails. 2012-11-25 18:00:48 -05:00
Jeffrey Forman b80719c7ea add zone class and view name to server zone list view 2012-11-25 14:59:05 -05:00
Jeffrey Forman fc971391b9 more cleanup, adding docstrings, bit more exception handling. 2012-11-18 21:10:09 -05:00
Jeffrey Forman 94fa3cbb43 slowly moving to using custom exceptions, removing unnecessary code 2012-11-17 23:02:57 -05:00
Jeffrey Forman ec1c07c191 Add use of custom exceptions in zone transfers 2012-11-17 13:06:24 -05:00
Jeffrey Forman 5154dd4298 Move keuy model up to top, add foreignkey to bindserver model to eventually use for transfer keys 2012-11-08 23:00:31 -05:00
Jeffrey Forman 1d584a0d8a make the error on retrieving a zone message more correct 2012-11-08 22:07:38 -05:00
Jeffrey Forman eb717e001a Bring things up to 1.4 standards. A LOT of file moves, simplifying of paths. Removed bcommon directory under binder 2012-10-28 14:49:15 -04:00