We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code should work, but fails because kyhwana.org exposes both the ECDSA algorithm and SHA-256 fingerprint.
$google = new \Net_DNS2_Resolver(['nameservers' => ['8.8.8.8', '8.8.4.4']]); $google->dnssec = true; try { $result = $google->query('kyhwana.org', 'SSHFP'); } catch(\Net_DNS2_Exception $ex) { die($ex->getMessage()); } foreach ($result->answer as $answer) { if ($answer instanceof \Net_DNS2_RR_SSHFP) { printf( '%s %d %s %s %d %d %s' . PHP_EOL, $answer->name, $answer->ttl, $answer->class, $answer->type, $answer->algorithm, $answer->fp_type, $answer->fingerprint ); } }
See also this post on SO, which led me to the problem in the first place.
The text was updated successfully, but these errors were encountered:
Thanks for the patch- I've merged your changes in trunk,
Mike
Sorry, something went wrong.
No branches or pull requests
The following code should work, but fails because kyhwana.org exposes both the ECDSA algorithm and SHA-256 fingerprint.
See also this post on SO, which led me to the problem in the first place.
The text was updated successfully, but these errors were encountered: