|
| ||||||||||
| Tags: domain name, ip address |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to get domain name from IP address
I have heard from my friends that we can convert an Ip address to an domain name I am very much keen to do that, i have try to find it over internet and i got some of the components where i can do it but is there can coding which i can use it,then it would be great for me. |
|
#2
| ||||
| ||||
| Re: How to get domain name from IP address
Sure i will provide you the code for that you need to use the following code:- Code: HostName = System.Net.Dns.GetHostName(); IPAddres = System.Net.Dns.GetHostAddresses(HostName).GetValue(0).ToString(); |
|
#3
| ||||
| ||||
| Re: How to get domain name from IP address
You can also try this code too Code: Set DomainName = objRootDSE.OpenDSObject("WinNT://TESTDOM", "abc", "xyz", ADS_SECURE_AUTHENTICATION)
DomainName.Filter = Array("User")
For Each usrName In DomainName
MsgBox usrName.Name
Next |
|
#4
| |||
| |||
| Re: How to get domain name from IP address
Thanks for replying me can anyone provide me code get domain name from IP address which is in Vb.Net then i would be very greatfull to him. |
|
#5
| ||||
| ||||
| Re: How to get domain name from IP address
At last i have got a code in Vb.Net here goes the code Code: Dim myHost As String = System.Net.Dns.GetHostName
Dim myIPs As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(myHost)
Response.Write("Host Name = " & myIPs.HostName & "<br />")
For Each myIP As System.Net.IPAddress In myIPs.AddressList
Response.Write("The IP address of host is = " & myIP.ToString)
Next |
|
#6
| |||
| |||
| Re: How to get domain name from IP address
hi you can simply get the domain name from ip at whoisxy, Here you give only the domain name it provide necessary detail for you |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to get domain name from IP address" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get user email address from <domain name\ad-ent id> using dsquery and dsget? | tkota | Active Directory | 1 | 09-06-2012 07:03 PM |
| IMpact of changing the IP address of a Domain Controller | Ian Wilson | Active Directory | 6 | 31-10-2011 08:33 PM |
| Change IP Address for a Domain Controller which is also an exchange server | mosquito_hippy | Windows Server Help | 4 | 11-08-2010 09:22 PM |
| Is there any way to fetch the ip address/Host name of the Domain controller | Swati_here_2008 | Software Development | 4 | 20-05-2008 02:51 PM |
| How to change the IP address of Main Domain Controller | John | Windows Server Help | 2 | 08-05-2007 04:33 AM |