Created
October 5, 2018 07:45
-
-
Save KalleZ/1fb56e7ffa9c01ed7389d154ba87f030 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
const SERVER_URL = 'php.net'; | |
var_dump(checkdnsrr()); | |
var_dump(checkdnsrr(SERVER_URL)); | |
foreach(['A', 'MX', 'NS', 'SOA', 'PTR', 'CNAME', 'AAAA', 'A6', 'SRV', 'NAPTR', 'TXT', 'ANY'] as $type) { | |
printf('%s: %s%s', $type, (checkdnsrr(SERVER_URL, type) ? 'Passed' : 'Failed'), PHP_EOL); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment