From b0f2211368a823778a57bf78c720a44af3587370 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 25 Oct 2008 01:34:37 +0000 Subject: * Add mail exchange * Add third A record --- packages/tinydns/new_zone_wizard.xml | 57 ++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) (limited to 'packages/tinydns') diff --git a/packages/tinydns/new_zone_wizard.xml b/packages/tinydns/new_zone_wizard.xml index ce77f36b..d9c3be4b 100644 --- a/packages/tinydns/new_zone_wizard.xml +++ b/packages/tinydns/new_zone_wizard.xml @@ -79,7 +79,23 @@ Enter the secondary nameserver for this domain (example: ns2.pfsense.org) - First A record + Mail Exchanger (optional) + listtopic + + + Mail exchanger record hostname + input + 1 + Enter the hostname of your Mail exchanger (MX) - (example: exchange.pfsense.org) + + + Mail exchanger record IP address + input + 1 + Enter the IP address of your Mail exchanger (MX) - (example: 9.10.11.12) + + + First A record (optional) listtopic @@ -95,7 +111,7 @@ Enter the first A records IP address (example: 1.2.3.4) - Secondary A record + Secondary A record (optional) listtopic @@ -110,6 +126,22 @@ 1 Enter the second A records IP address (example: 5.6.7.8) + + Third A record (optional) + listtopic + + + Third A record IP hostname + input + 1 + Enter the third A records hostname (example: www2.pfsense.org) + + + Third A record IP address + input + 1 + Enter the third A records IP address (example: 9.10.11.12) + Next submit @@ -154,11 +186,30 @@ $tmp = array(); $tmp['hostname'] = $_POST['secondarecordiphostname']; $tmp['recordtype'] = "A"; - $tmp['ipaddress'] = $_POST['secondarecordipaddress']; + $tmp['ipaddress'] = $_POST['secondarecordipaddress']; $config['installedpackages']['tinydnsdomains']['config'][] = $tmp; unset($tmp); $changed = true; } + + if($_POST['thirdarecordiphostname'] and $_POST['thirdarecordipaddress']) { + $tmp = array(); + $tmp['hostname'] = $_POST['thirdarecordiphostname']; + $tmp['recordtype'] = "A"; + $tmp['ipaddress'] = $_POST['thirdarecordipaddress']; + $config['installedpackages']['tinydnsdomains']['config'][] = $tmp; + unset($tmp); + $changed = true; + } + + if($_POST['mailexchangerrecordipaddress'] and $_POST['mailexchangerrecordhostname']) { + $tmp = array(); + $tmp['hostname'] = $_POST['mailexchangerrecordhostname']; + $tmp['recordtype'] = "MX"; + $tmp['ipaddress'] = $_POST['secondarecordipaddress']; + unset($tmp); + $changed = true; + } if($changed) { write_config("new_zone_wizard.xml is creating a new zone {$_POST['domainname']}"); -- cgit v1.2.3