17-10-12, 06:18 PM
كاتب الموضوع : Boutemine Oualid
السلام عليكم و رحمة الله وبركاتهفيبي نت
كود :
Public Shared Function IPToDNS(ByVal ip As String) As String
Return System.Net.Dns.Resolve(ip).HostName
End Function
'Example
IPToDNS("127.0.0.1") ' return "localhost"
كود :
public static string IPToDNS(string ip)
{
return System.Net.Dns.Resolve(ip).HostName;
}
// Example
IPToDNS("127.0.0.1"); // return "localhost"