document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <!doctype html>
  2. <html>
  3. <body>
  4.     <form action="/" method="POST">
  5.         Domain Name
  6.         <input type="text" name="domain_name">
  7.         <input type="submit" value="nslookup">
  8.     </form>
  9. </body>
  10. </html>
  11.  
  12. <?php
  13.  
  14.     function is_domain($domain)
  15.     {
  16.         //domain, sub domain, top level domain
  17.         return preg_match(\'/^ (?: [a-z0-9] (?:[a-z0-9\\-]* [a-z0-9])? \\. )*[a-z0-9] (?:[a-z0-9\\-]* [a-z0-9])?\\.[a-z]{2,6}$/ix\', $domain);  
  18.     }
  19.  
  20.     if(isset($_POST["domain_name"]) && is_domain($_POST["domain_name"]))
  21.     {
  22.         system("nslookup " . $_POST["domain_name"]);
  23.     }
  24. ?>
');