1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-09 16:37:23 +01:00

add DNSSEC

* sign zones
* in a cron job, periodically re-sign zones because they expire (not tested)
This commit is contained in:
Joshua Tauberer
2014-06-17 22:21:12 +00:00
parent aaa735dbfe
commit 88709506f8
4 changed files with 234 additions and 18 deletions

View File

@@ -53,7 +53,18 @@ def mail_domains():
@app.route('/dns/update', methods=['POST'])
def dns_update():
from dns_update import do_dns_update
return do_dns_update(env)
try:
return do_dns_update(env)
except Exception as e:
return (str(e), 500)
@app.route('/dns/ds')
def dns_get_ds_records():
from dns_update import get_ds_records
try:
return get_ds_records(env)
except Exception as e:
return (str(e), 500)
# System