aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-06 19:49:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-06 19:49:27 +0000
commit9f9dbbcd929dff558b1c855c2a2fbd94ace007ce (patch)
treea15bd7c491b7f9068348d6dd15dcadd40c4a34ce /packages/tinydns
parent23ee4a7d2553fa632b1e9a27b88084a9ed5f5e1a (diff)
downloadpfsense-packages-9f9dbbcd929dff558b1c855c2a2fbd94ace007ce.tar.gz
pfsense-packages-9f9dbbcd929dff558b1c855c2a2fbd94ace007ce.tar.bz2
pfsense-packages-9f9dbbcd929dff558b1c855c2a2fbd94ace007ce.zip
* Reparse config.xml before writing out file.
* Update TINYDNS ip upon change
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/tinydns.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 88736e16..374b914f 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -140,6 +140,7 @@ function tinydns_custom_php_changeip_command() {
exec("/usr/local/bin/tinydns-conf Gtinydns Gdnslog /etc/tinydns {$ip}");
exec("/bin/mkdir /service");
exec("/bin/ln -s /etc/tinydns /service/");
+ exec("echo $ip > /service/tinydns/env/IP");
conf_mount_ro();
filter_configure();
}
@@ -248,6 +249,9 @@ function tinydns_create_zone_file() {
global $g, $config;
conf_mount_rw();
config_lock();
+ if(file_exists("/tmp/config.cache"))
+ unlink("/tmp/config.cache");
+ parse_config(true);
exec("rm -f /service/tinydns/root/data");
$fd = fopen("/service/tinydns/root/data", "w");
if(!$fd) {