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

Initial backend changes to make it possible to have one or more secondary name servers

This commit is contained in:
Brian Bustin
2015-07-01 15:02:40 -04:00
committed by Joshua Tauberer
parent d08a3095a9
commit 09133c8f59
4 changed files with 50 additions and 39 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)