summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-09-25 16:15:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-09-25 16:15:24 +0000
commita3e9c8d34acac0700a9c9cf9a740e543b5785663 (patch)
tree3f2f37b7cb3a6e74d18f33c40f29913e436438b4 /etc
parent0f06b7cecd9c367e90e8e250c712c4438cddaac1 (diff)
downloadpfsense-a3e9c8d34acac0700a9c9cf9a740e543b5785663.zip
pfsense-a3e9c8d34acac0700a9c9cf9a740e543b5785663.tar.gz
Use gethostbyname()
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
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");
OpenPOWER on IntegriCloud