diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-09-25 16:15:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-09-25 16:15:24 +0000 |
commit | a3e9c8d34acac0700a9c9cf9a740e543b5785663 (patch) | |
tree | 3f2f37b7cb3a6e74d18f33c40f29913e436438b4 /etc | |
parent | 0f06b7cecd9c367e90e8e250c712c4438cddaac1 (diff) | |
download | pfsense-a3e9c8d34acac0700a9c9cf9a740e543b5785663.zip pfsense-a3e9c8d34acac0700a9c9cf9a740e543b5785663.tar.gz |
Use gethostbyname()
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 558766e..9b7ef43 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -3689,7 +3689,7 @@ function is_wan_interface_up($interface) { function add_hostname_to_watch($hostname) { error_reporting(0); if(is_hostname($hostname)) { - $dnshost = gethostbyaddr($hostname); + $dnshost = gethostbyname($hostname); if(!is_dir("/var/db/dnscache")) mkdir("/var/db/dnscache"); exec("echo $dnshost > /var/db/dnscache/$hostname"); |