diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-18 01:59:57 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-18 01:59:57 -0400 |
commit | 86488702f28a90fcdf0568abdd2c15f056ae1581 (patch) | |
tree | 40e001ede5821107eb115656b6fcd6e101815f77 /usr | |
parent | 42753d259b3c7b51003cbd161e5ef15fa8a01d5c (diff) | |
download | pfsense-86488702f28a90fcdf0568abdd2c15f056ae1581.zip pfsense-86488702f28a90fcdf0568abdd2c15f056ae1581.tar.gz |
Query host with host and also check this against cached address.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_dyndns.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php index 1ddb905..6a0d059 100755 --- a/usr/local/www/services_dyndns.php +++ b/usr/local/www/services_dyndns.php @@ -109,10 +109,11 @@ 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 }'`); $cached_ip_s = split(":", file_get_contents($filename)); $cached_ip = $cached_ip_s[0]; $int_ip = find_interface_ip($real_int); - if($int_ip <> $cached_ip) + if($int_ip <> $cached_ip or $dns_resolv <> $int_ip) echo "<font color='red'>"; else echo "<font color='green'>"; |