SHARE
TWEET

Untitled

a guest Jan 21st, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getRecords($domain)
  2. {
  3.    
  4.     $domain = strtolower($domain);
  5.     $HostRecord = gethostbyname($domain);
  6.     getmxrr($domain, $MXRecord);
  7.     return array('domain' => $domain, 'host' => $HostRecord, 'mx' => $MXRecord); // what is MXRecord?
  8. }
  9.  
  10. $ret = getRecords($_POST['domain']);
  11.  
  12. echo "The webpage is hosted on: " . $ret['$domain'] . "<br />";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top