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

Now accepts one or more secondary nameservers. Works from the web interface.

This commit is contained in:
Brian Bustin
2015-07-01 21:16:28 -04:00
parent c23c1c311e
commit 32a6ebe2ca
3 changed files with 32 additions and 38 deletions

View File

@@ -229,7 +229,7 @@ def dns_get_secondary_nameserver():
def dns_set_secondary_nameserver():
from dns_update import set_secondary_dns
try:
return set_secondary_dns(request.form.get('hostname'), env)
return set_secondary_dns(request.form.get('hostname').split(","), env)
except ValueError as e:
return (str(e), 400)