- @H_403_3@DimhostInfo@H_403_3@AsSystem.Net.IPHostEntry=System.Net.Dns.GetHostByName(TextBox1.Text)
- MessageBox.Show(hostInfo.AddressList(0).ToString,"主机地址",MessageBoxButtons.OK,MessageBoxIcon.Exclamation)
- '从域名到IP地址的转换
- @H_403_3@DimmyIP@H_403_3@AsSystem.Net.IPAddress=System.Net.IPAddress.Parse(TextBox2.Text)
- @H_403_3@DimhostInfo@H_403_3@AsSystem.Net.IPHostEntry=System.Net.Dns.GetHostByAddress(myIP)
- MessageBox.Show(hostInfo.HostName.ToString,"主机域名",MessageBoxIcon.Exclamation)
- '从IP地址到域名的转换()