Need help in installing mx lookup and dns lookup in my website

Need help in installing mx lookup and dns lookup in my website .

Is it possibel to have it through other site.

Thanks
LVL 29
MAS (MVE)Technical Department HeadAsked:
Who is Participating?
 
ndivaniCommented:
You can use these  codes for your web site to check DNS record :

*******************************
<table cellpadding="5" cellspacing="0" border="0" style="width: 100%; border-collapse: collapse">
  <tr>
    <td>
      <table cellpadding="2" cellspacing="0" style="border-collapse: collapse">
        <tr>
          <td>
            <b>Enter URL:</b>
          </td>
          <td>
            <input type="text" name="url" value="" size="40" />
          </td>
          <td>
            <input type="button" value="Show DNS Records" onclick="OnSubmitPluginInput(this,'http://www.webtoolhub.com/plugins/wt561347-mx-ns-soa-record-lookup.aspx');" />
          </td>
       </tr>
       <tr>
         <td>
         </td>
         <td colspan="2" style="font-size: 9pt;">
           (e.g. yourwebsite.com)
         </td>
       </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <iframe name="pluginframe561347" frameborder="0" style="width: 100%; height: 300px"></iframe>
    </td>
  </tr>
  <tr>
    <td style="font-size: 9pt; font-family: Verdana, Arial;">
      Powered by: <a href="http://www.webtoolhub.com/" title="Free Webmaster Tools">WebToolHub.com</a>
    </td>
  </tr>
</table>
<script type="text/javascript" src="http://www.webtoolhub.com/plugin.axd"></script>

*************

this ASP Code is for MX Lookup codes for your web page . Ensure that you asp user has  enough permissions to run %comspec% on the server
<%@LANGUAGE="VBSCRIPT"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MX Lookup</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form action="MXlookup.asp" method="get">
<p> Enter the host name for MX lookup:&nbsp;&nbsp;&nbsp;
<input name="host" type="text" id="host" size="40" value="<%=Request.QueryString("host")%>" />
&nbsp; &nbsp; &nbsp;
<input type="submit" value=" Lookup " />
</p>
</form>
<%
IF Request.QueryString("host")<>"" THEN MXLookup(Request.QueryString("host"))
FUNCTION MXLookup(host)
  SET objShell = Server.CreateObject("Wscript.Shell")
  DIM objExec, strResult
  SET objExec = objShell.Exec("%comspec% /c nslookup -type=MX "&host)
  WHILE objExec.Status <> WshFinished
    'Wait for the command to be run completely  
  WEND
  strResult = objExec.StdOut.ReadAll
  Reflect(strResult)
END FUNCTION
FUNCTION Reflect(str)
  DIM lines, accepted : accepted = -1
  lines = Split(str,chr(13))
  FOR i = 0 TO UBound(lines)
   IF InStr(lines(i),"MX preference = ") > 0 THEN
     accepted = i
     EXIT FOR
   END IF
  NEXT
  IF accepted > -1 THEN
   Response.Write "Accepted: " & lines(accepted)
  ELSE
   Response.Write "Denied! "
  END IF
END FUNCTION
%>
</body>
</html>
0
 
Hind987Commented:
Hi

To check your MX lookup and DNS lookup

Please go to the following site( http://iptools.com and  http://www.whois.net )here u can very your each record of your web site.

thats all
0
 
MAS (MVE)Technical Department HeadAuthor Commented:
Thanks for your sites provided

I want to add a page where users should be able to look their dns records and mx records.

Thanks
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
ndivaniCommented:
Hello

 below free site can help you to check MX and DNS Lookup :
http://www.hscripts.com/tools/HDNT/dns-record.php

  if you want to see more information you can find  all tools  here :
http://www.dnsstuff.com/tools

Regards
Nizam
0
 
MAS (MVE)Technical Department HeadAuthor Commented:
These all online tools. I want a tool to install in my server and make it available to users.

Thanks


0
 
MAS (MVE)Technical Department HeadAuthor Commented:
Sorry to tell you.
I found google gadgets available to add to the site for checking PTR,MX,SPF etc.

Thanks
0
 
MAS (MVE)Technical Department HeadAuthor Commented:
Is it possible to show the resilt in a new window.

Thanks

0
 
MAS (MVE)Technical Department HeadAuthor Commented:
Oops!! Something went wrong

Please make sure that the web page hosting the plugin is publicly accessible. For more information check our terms of use

This is the error I am getting when I type any domain name.
Please help to rectify.
0
 
ndivaniCommented:
Hello
 I tested it was okay. Could you test with a known domain like www.google.com etc. ?
Regards
0
 
MAS (MVE)Technical Department HeadAuthor Commented:
I tried but it is the same.
0
 
ndivaniCommented:
ok test attached javascript for mxlookup  then it is more compatible for all types of web pages.

dnslookup:
 get code from this page. It is not using 3th poarty web site for retrieval dns lokup :
http://forums.devarticles.com/javascript-development-22/dns-lookup-using-javascript-74973.html

Regards
MXLookup.java
0
 
MAS (MVE)Technical Department HeadAuthor Commented:
solution complete
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.