IPHostEntry hostInfo = Dns.GetHostByName(this.TextBox1.Text);
TextBox2.Text = hostInfo.AddressList[0].ToString();
TextBox1规则是 www.***.com
IPHostEntry hostInfo = Dns.GetHostByName(this.TextBox1.Text);
TextBox2.Text = hostInfo.AddressList[0].ToString();
TextBox1规则是 www.***.com
转载于:https://www.cnblogs.com/freexiaoyu/archive/2011/05/06/2038804.html