473,508 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NSLOOKUP

Hi everyone
I need to simulate NSLOOKUP but with asp.net in c# o vb.net, any idea?
I don't need a very complex example, only 2 textbox for the domain and other
for the DNS server, and one button, that's all.
Any help?
Thanks

--
FF
www.francofigun.com.ar
www.microsofties.com.ar
Yahoo MSN: fr******@yahoo.com.ar
Jul 21 '05 #1
3 8696
Look at the DNS class.

--
Jonathan Allen
"Franco Figún" <fr*****@fibertel.com.ar> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi everyone
I need to simulate NSLOOKUP but with asp.net in c# o vb.net, any idea?
I don't need a very complex example, only 2 textbox for the domain and other for the DNS server, and one button, that's all.
Any help?
Thanks

--
FF
www.francofigun.com.ar
www.microsofties.com.ar
Yahoo MSN: fr******@yahoo.com.ar

Jul 21 '05 #2
Do you have a example? I never use before....
Thanks

--
FF
www.francofigun.com.ar
www.microsofties.com.ar
Yahoo MSN: fr******@yahoo.com.ar

"Jonathan Allen" <X@X> escribió en el mensaje
news:u4**************@tk2msftngp13.phx.gbl...
Look at the DNS class.

--
Jonathan Allen
"Franco Figún" <fr*****@fibertel.com.ar> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi everyone
I need to simulate NSLOOKUP but with asp.net in c# o vb.net, any idea?
I don't need a very complex example, only 2 textbox for the domain and

other
for the DNS server, and one button, that's all.
Any help?
Thanks

--
FF
www.francofigun.com.ar
www.microsofties.com.ar
Yahoo MSN: fr******@yahoo.com.ar


Jul 21 '05 #3
Example from .NET SDK Documentation

try
{
IPAddress hostIPAddress = IPAddress.Parse(IpAddressString);
IPHostEntry hostInfo = Dns.GetHostByAddress(hostIPAddress);
// Get the IP address list that resolves to the host names contained in
// the Alias property.
IPAddress[] address = hostInfo.AddressList;
// Get the alias names of the addresses in the IP address list.
String[] alias = hostInfo.Aliases;

Console.WriteLine("Host name : " + hostInfo.HostName);
Console.WriteLine("\nAliases :");
for(int index=0; index < alias.Length; index++) {
Console.WriteLine(alias[index]);
}
Console.WriteLine("\nIP address list : ");
for(int index=0; index < address.Length; index++) {
Console.WriteLine(address[index]);
}
}
catch(SocketException e)
{
Console.WriteLine("SocketException caught!!!");
Console.WriteLine("Source : " + e.Source);
Console.WriteLine("Message : " + e.Message);
}
catch(FormatException e)
{
Console.WriteLine("FormatException caught!!!");
Console.WriteLine("Source : " + e.Source);
Console.WriteLine("Message : " + e.Message);
}
catch(ArgumentNullException e)
{
Console.WriteLine("ArgumentNullException caught!!!");
Console.WriteLine("Source : " + e.Source);
Console.WriteLine("Message : " + e.Message);
}
catch(Exception e)
{
Console.WriteLine("Exception caught!!!");
Console.WriteLine("Source : " + e.Source);
Console.WriteLine("Message : " + e.Message);
}

In your case just replace console output to your needs.

"Franco Figún" <fr*****@fibertel.com.ar> wrote in message
news:eK**************@tk2msftngp13.phx.gbl...
Do you have a example? I never use before....
Thanks

--
FF
www.francofigun.com.ar
www.microsofties.com.ar
Yahoo MSN: fr******@yahoo.com.ar

"Jonathan Allen" <X@X> escribió en el mensaje
news:u4**************@tk2msftngp13.phx.gbl...
Look at the DNS class.

--
Jonathan Allen
"Franco Figún" <fr*****@fibertel.com.ar> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> Hi everyone
> I need to simulate NSLOOKUP but with asp.net in c# o vb.net, any idea?
> I don't need a very complex example, only 2 textbox for the domain and

other
> for the DNS server, and one button, that's all.
> Any help?
> Thanks
>
> --
> FF
> www.francofigun.com.ar
> www.microsofties.com.ar
> Yahoo MSN: fr******@yahoo.com.ar
>
>



Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
7298
by: TomT | last post by:
Hi, I've been searching but have not been able to find a script that will allow nslookup's using ASP. I'm looking to use a form, that will allow users to enter IP addresses or domian names,...
6
8306
by: axxegfx | last post by:
I need to resolve one domain , i have proved this: System.Net.Dns.GetHostByName("digitalprologic.com") but it returns an error. I have typed DOS nslookup -querytype=any digitalprologic.com...
0
2474
by: ginn via DotNetMonster.com | last post by:
Hi, To block spam-mails I want to write my own blackhole list server for my Postfix mailserver in .NET In postfix i would have to add the line reject_rbl_client <myBlackList> to the...
1
4983
by: kcw3388 | last post by:
Hi, I have a SunOS TCP/IP client program worked fine for a long time until yesterday. Now, my TCP/IP server program is located on different DNS server. The gethostbyaddr ( ) is now...
1
2997
by: Franco Figún | last post by:
Hi everyone I need to simulate NSLOOKUP but with asp.net in c# o vb.net, any idea? I don't need a very complex example, only 2 textbox for the domain and other for the DNS server, and one button,...
0
1219
by: pmclinn | last post by:
I'm looking to find the code to do an nslookup via my own dns like this: MyDNS = xxx.xxx.xxx.xxx result = resolve this ip(yyy.yyy.yyy.yyy) via this server MyDNS I have seen many examples...
2
3216
by: Stuart Duncan | last post by:
Hi I am trying to put a web page together that will allow the user to find the MX record for a domain. I have found PHP code that uses nslookup but when I use it, I receive a "Page cannot be...
7
21057
usafshah
by: usafshah | last post by:
When i try nslookup from my domain (either from domaincontroller or from any client) it says C:\Users\usaf.EITS>nslookup Default Server: UnKnown Address: 192.168.0.100:53 why UNKNOWN ?
1
5323
by: nitinpatel1117 | last post by:
Hi I have been trying to use the php exec and nslookup for DNS lookups on a windows platform. but whenever i execute the code i get the following error: Unable to fork I am pretty sure that...
0
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.