diff options
Diffstat (limited to 'usr/local/www/services_dyndns.php')
-rwxr-xr-x | usr/local/www/services_dyndns.php | 7 |
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); |