summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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