aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns/tinydns.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tinydns/tinydns.inc')
-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) {