code=C#]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;using System.Net;
using System.Net.Sockets;
using System.Threading;namespace WindowsDns
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
        }        private void button1_Click(object sender, EventArgs e)
        {
            IPHostEntry iphe = new IPHostEntry();
            iphe = Dns.Resolve("www.163.com");
            for (int i = 0; i < iphe.AddressList.Length; i++)
            {
                richTextBox1.AppendText(iphe.AddressList[i].ToString()+Environment.NewLine);
            }
        }
    }
}[
[/code]