Commit 7f7f8db8 authored by dmorley's avatar dmorley

deal with cname and try less flaky dns

parent 7b01935a
......@@ -154,13 +154,14 @@ while ($row = pg_fetch_assoc($result)) {
}
_debug('Signup Open', $signup);
$ip6 = exec(escapeshellcmd('dig @4.2.2.2 +nocmd ' . $domain . ' aaaa +noall +short'));
$ip6 = exec(escapeshellcmd('dig @74.82.42.42 +nocmd ' . $domain . ' aaaa +noall +short'));
$iplookup = [];
exec(escapeshellcmd('delv @4.2.2.2 ' . $domain), $iplookup);
exec(escapeshellcmd('delv @74.82.42.42 ' . $domain), $iplookup);
if ($iplookup) {
_debug('Iplookup', $iplookup, true);
$dnssec = in_array('; fully validated', $iplookup) ?? false ;
preg_match('/A(.*)/', $iplookup[1], $version);
$getaonly = array_values(preg_grep('/A\s.*/', $iplookup));
preg_match('/A\s(.*)/', $getaonly[0], $version);
$ip = trim($version[1]);
}
$ip || $score -= 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment