diff options
author | Goffredo Andreone <gandreone@pfsense.org> | 2007-02-24 06:19:08 +0000 |
---|---|---|
committer | Goffredo Andreone <gandreone@pfsense.org> | 2007-02-24 06:19:08 +0000 |
commit | 4a44e48f21e875c509c0ceb6f2e7493ea2cd1884 (patch) | |
tree | b1d6e08822c3da7528f46d8049f111b890373662 /packages/tinydns/tinydns.inc | |
parent | 0efa34f7de5facc2b1ab801722d2f38f8c08ec85 (diff) | |
download | pfsense-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/tinydns.inc')
-rw-r--r-- | packages/tinydns/tinydns.inc | 3 |
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']) { |