home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD><TITLE>Sambar Server Network Control Panel</TITLE>
- <%
- #include "../header.asp"
- #include "../menu.asp"
- area = "dns";
- #include "submenu.asp"
- %>
- <BR>
- <BLOCKQUOTE><BLOCKQUOTE>
- <FORM method=get action=index.asp>
- <INPUT NAME=host VALUE="<%=findParameter($params, "host", ""); %>">
- <INPUT TYPE=submit VALUE="Get Host Address(s)">
- </FORM>
- <FORM method=get action=index.asp>
- <INPUT NAME=addr VALUE="<%=findParameter($params, "addr", ""); %>">
- <INPUT TYPE=submit VALUE="Get Host Name">
- </FORM>
- <FORM method=get action=index.asp>
- <INPUT NAME=mx VALUE="<%=findParameter($params, "mx", ""); %>">
- <INPUT TYPE=submit VALUE="Get MX Record(s)">
- </FORM>
- <BR>
- <%
- host = getParameter($params, "host");
- if (host != NULL)
- {
- vals = gethostaddr(host);
- if (vals == NULL)
- {
- printf("gethostaddr(%s) failed.", host);
- }
- else
- {
- printf("<B>Address Lookup: %s</B><BR><BLOCKQUOTE>\n", host);
- for (i = 0; i < sizeof(vals); i++)
- {
- printf("<B>%s</B><BR>\n", vals[i]);
- }
-
- printf("</BLOCKQUOTE>\n");
- }
- }
-
- addr = getParameter($params, "addr");
- if (addr != NULL)
- {
- name = gethostname(addr);
- if (name == NULL)
- {
- printf("gethostname(%s) failed.", addr);
- }
- else
- {
- printf("<B>Host Lookup: %s</B><BR><BLOCKQUOTE>\n", addr);
- printf("<B>%s</B><BR>\n", name);
- printf("</BLOCKQUOTE>\n");
- }
- }
-
- mx = getParameter($params, "mx");
- if (mx != NULL)
- {
- vals = gethostmx(mx);
- if (vals == NULL)
- {
- printf("gethostmx(%s) failed.", mx);
- }
- else
- {
- printf("<B>MX Records: %s</B><BR><BLOCKQUOTE>\n", mx);
- for (i = 0; i < sizeof(vals); i++)
- {
- printf("<B>%s</B><BR>\n", vals[i]);
- }
-
- printf("</BLOCKQUOTE>\n");
- }
- }
- %>
- </BLOCKQUOTE></BLOCKQUOTE>
- <%
- #include "../footer.asp"
- %>
- </BODY></HTML>
-