Question API FUNCTION or ANY OTHER FUNCTION

just369

Member
Joined
May 12, 2010
Messages
17
Programming Experience
Beginner
does someone know what api funtion to use for getting remote host name

right now i use

System.Net.Dns.GetHostName and the nbtstat -a function, but still have some computers that i dont get their host name but i do get their mac with send arp...so how cna i get their host names with an API call..

thank you

this is my code for dns.hostname ..helloo its a given ip
[HIGHLIGHT="vb.net"]Dim myIPs3 As System.Net.IPHostEntry = Dns.GetHostEntry(hello)
Dim newhost3 As String = myIPs3.HostName[/HIGHLIGHT]


like for example to find mac theres send arp...theres nbtstat and WMI...if i dont find a mac with one i find it with another on and so on./...

but for host i only have nbtstat and gethostentry...does ayone know of another one in case i dont get the name of remote cp with this codes.

i KNOW MAC AND HOST are diferrent, i just want to know if theres more functions to find host names apart the ones i have
 
Back
Top