aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/tinydns.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
index 05a76290..4cae65d4 100644
--- a/packages/tinydns/tinydns.inc
+++ b/packages/tinydns/tinydns.inc
@@ -141,7 +141,7 @@ function tinydns_custom_php_changeip_command() {
exec("/bin/mkdir /service");
exec("/bin/ln -s /etc/tinydns /service/");
exec("echo $ip > /service/tinydns/env/IP");
- exec("killall -9 tinydns");
+ exec("/usr/bin/killall -9 tinydns");
conf_mount_ro();
filter_configure();
}
@@ -345,9 +345,9 @@ function tinydns_get_rowline_data($recordip, $recordtype, $ttl, $hostname,$rdns)
case "A":
/* "=" creates both "A" and "PTR" records to allow both forward and reverse DNS */
if($rdns)
- $record_data = "={$hostname}:{$recordip}{$ttl_string}";
+ $record_data = "={$hostname}:{$recordip}{$ttl_string}";
else
- /* "+" creates "A" records only to allow forward DNS */
+ /* "+" creates "A" records only to allow forward DNS */
$record_data = "+{$hostname}:{$recordip}{$ttl_string}";
break;
case "CNAME":
@@ -370,7 +370,6 @@ function tinydns_do_xmlrpc_sync($sync_to_ip, $password) {
if(!$sync_to_ip)
return;
-
$xmlrpc_sync_neighbor = $sync_to_ip;
if($config['system']['webgui']['protocol'] != "") {
$synchronizetoip = $config['system']['webgui']['protocol'];
@@ -392,8 +391,6 @@ function tinydns_do_xmlrpc_sync($sync_to_ip, $password) {
$xml['installedpackages']['tinydns'] = $config['installedpackages']['tinydns'];
$xml['installedpackages']['tinydnsdomains'] = $config['installedpackages']['tinydnsdomains'];
- //print_r($xml);
-
/* assemble xmlrpc payload */
$params = array(
XML_RPC_encode($password),