aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-02 23:37:57 -0700
committerzotlabs <mike@macgirvin.com>2016-11-02 23:37:57 -0700
commitb541351a0a52d156085b0f1e06079c1c2e409eb8 (patch)
tree7132932e8ef81952cbf948acea7a216ed32972ed /include/network.php
parent92f5a2b6a694e857dacb47a60a5bdaa23b1c8947 (diff)
downloadvolse-hubzilla-b541351a0a52d156085b0f1e06079c1c2e409eb8.tar.gz
volse-hubzilla-b541351a0a52d156085b0f1e06079c1c2e409eb8.tar.bz2
volse-hubzilla-b541351a0a52d156085b0f1e06079c1c2e409eb8.zip
ignore flags to dns_get_record() and look for anything
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php
index 7cfd3a5e6..fe360c425 100644
--- a/include/network.php
+++ b/include/network.php
@@ -495,10 +495,13 @@ function z_dns_check($h,$check_mx = 0) {
&& \App::$config['system']['do_not_check_dns'])
return true;
- $opts = DNS_A + DNS_CNAME + DNS_PTR;
- if($check_mx)
- $opts += DNS_MX;
- return((@dns_get_record($h, $opts) || filter_var($h, FILTER_VALIDATE_IP)) ? true : false);
+
+ //$opts = DNS_A + DNS_CNAME + DNS_PTR;
+ //if($check_mx)
+ // $opts += DNS_MX;
+ // Specific record type flags are unreliable on FreeBSD and Mac,
+ // so now we'll ignore these and just check for the existence of any DNS record.
+ return((@dns_get_record($h) || filter_var($h, FILTER_VALIDATE_IP)) ? true : false);
}