|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Mx Record
Hi,
I am trying to develop an dns query tool which will make an query on domain name, like nslookup,mx record,ping,name server,CName....etc. I was able to find the IP address for an domain using following snippet code mentioned code but i how to find the name server and mx record for domain. lstHostDisplay.Items.Clear();//clear list box string strHost=null; string m_mxrecord = null; strHost = txtHostName.Text.ToString();//Input web host name as string IPHostEntry IPHost = Dns.Resolve(strHost); // though Dns to get IP host //lstHostDisplay.Items.Add(IPHost.HostName);// Output name of web host IPAddress [] address = IPHost.AddressList; // get list of IP address for(int i = 0;i< address.Length; i++) { if(i==0) { lstHostDisplay.Items.Add("NSLOOKUP"); } lstHostDisplay.Items.Add(address[i]);// output list of IP address } lstHostDisplay.Items.Add("********************"); Any help will be appericiated Thanks, Swami |
|
#2
|
|||
|
|||
|
Where should this go? It's not Visual Basic code
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Mx Record |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|