summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dyndns.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-14 21:49:40 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-14 21:49:40 -0400
commit1d333258dc840cfdfa91d4d5566a9189e0ead9fe (patch)
tree68da71aa2427e130ff8f7d4556c07314daa86afc /usr/local/www/services_dyndns.php
parent7ac5a4cb18367693e0a4c576cbcd907ee7d5ad67 (diff)
downloadpfsense-1d333258dc840cfdfa91d4d5566a9189e0ead9fe.zip
pfsense-1d333258dc840cfdfa91d4d5566a9189e0ead9fe.tar.gz
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to include 2009 on files that I have asserted (C) on
Diffstat (limited to 'usr/local/www/services_dyndns.php')
-rwxr-xr-xusr/local/www/services_dyndns.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php
index 6a0d059..a2e1947 100755
--- a/usr/local/www/services_dyndns.php
+++ b/usr/local/www/services_dyndns.php
@@ -25,6 +25,10 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ pfSense_BUILDER_BINARIES: /usr/bin/host
+ pfSense_MODULE: dyndns
+*/
##|+PRIV
##|*IDENT=page-services-dynamicdnsclients
@@ -33,7 +37,6 @@
##|*MATCH=services_dyndns.php*
##|-PRIV
-
require("guiconfig.inc");
if (!is_array($config['dyndnses']['dyndns']))
@@ -109,7 +112,7 @@ include("head.inc");
$real_int = get_real_interface($if);
$filename = "{$g['conf_path']}/dyndns_{$int}dyndns.cache";
if(file_exists($filename)) {
- $dns_resolv = str_replace("\n", "", `host {$dyndns['host']} | awk '{ print $4 }'`);
+ $dns_resolv = str_replace("\n", "", `/usr/bin/host {$dyndns['host']} | awk '{ print $4 }'`);
$cached_ip_s = split(":", file_get_contents($filename));
$cached_ip = $cached_ip_s[0];
$int_ip = find_interface_ip($real_int);
OpenPOWER on IntegriCloud