aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
authorGoffredo Andreone <gandreone@pfsense.org>2007-02-24 06:19:08 +0000
committerGoffredo Andreone <gandreone@pfsense.org>2007-02-24 06:19:08 +0000
commit4a44e48f21e875c509c0ceb6f2e7493ea2cd1884 (patch)
treeb1d6e08822c3da7528f46d8049f111b890373662 /packages/tinydns
parent0efa34f7de5facc2b1ab801722d2f38f8c08ec85 (diff)
downloadpfsense-packages-4a44e48f21e875c509c0ceb6f2e7493ea2cd1884.tar.gz
pfsense-packages-4a44e48f21e875c509c0ceb6f2e7493ea2cd1884.tar.bz2
pfsense-packages-4a44e48f21e875c509c0ceb6f2e7493ea2cd1884.zip
Corrected an error in registering local domains
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/tinydns.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 2736f3e2..f71038ea 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -148,6 +148,7 @@ function tinydns_custom_php_changeip_command() {
$dnsserverip = $config['installedpackages']['tinydns']['config'][0]['ipaddress'];
if($config['installedpackages']['tinydns']['config'][0]['regdhcpstatic'] OR $config['installedpackages']['tinydns']['config'][0]['regdhcp'])
$dnsserverip = "127.0.0.1";
+ $config['installedpackages']['tinydns']['config'][0]['ipaddress'] = $dnsserverip;
$updatecron = $config['installedpackages']['tinydns']['config'][0]['updatecron'];
/* setup daemon tools service area */
@@ -312,7 +313,7 @@ function tinydns_create_zone_file() {
}
/* For now do not allow registration of 'local' DNS data if tinyDNS not bound to 127.0.0.1 */
- if($dnsserverip == "127.0.0.1") {
+ if($config['installedpackages']['tinydns']['config'][0]['ipaddress'] == "127.0.0.1") {
/* Load the root servers if Forwarding is enabled */
/* Register LAN IP and SOA Forward and Reverse DNS recors in TinyDNS Server*/
if($config['installedpackages']['tinydns']['config'][0]['enableforwarding']) {