jhalbrecht

php dns_get_record

Oct 27th, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1.   <?php
  2.   $dnsrecs = dns_get_record('www.openbsd.org'); foreach($dnsrecs as $dnsrec){ foreach($dnsrec as $label=>$val){ echo $label.':    '. $val . '<br>'; } }
  3.   ?>
Advertisement
Add Comment
Please, Sign In to add comment