Domain checker (Whois)?
<p>to all.
i developing a webpage using asp.net with c# language, in this webpage i have a textbox for taking url of the domain and button. when user enter domain name in the textbox and press the button the details of the domain will displaying in the other window. i take help from stackoverflow user and i get the code it is working fine, but when i type the domain name particularly ".in" doamins are not giving details. simply domain available message is displaying actually the domain is registered for example i tried "axisbank.co.in" in my page it is displaying the domain is available but actually it is already taken. I am sending my code please help me ( particularly .in domain names)</p>

<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
    lblDomainName.Text = Session["WhoIs"].ToString();
    string firstLevelbufData = null;
    // Stores the bufData extracted from the webclient 
    try
    {
        // similarly we can select any server address for bufData mining
        string strURL = "http://www.directnic.com/whois/index.php?query=" + txtDomain.Text;
        WebClient web = new WebClient();
        // byte array to store the extracted bufData by webclient
        byte[] bufData = null;
        bufData = web.DownloadData(strURL);
        // got the bufData now convert it into string form
        firstLevelbufData = Encoding.Default.GetString(bufData);
    }
    catch (System.Net.WebException ex)
    {
        // this exception will be fired when the host name is not resolved or any other connection problem
        //txtResult.Text = ex.Message.ToString();//sasi
        lblresult.Text = ex.Message.ToString();
        return;
    }
    try
    {
        // first and last are the regular expression string for extraction bufData witnin two tags
        // you can change according to your requirement
        string first = null;
        string last = null;
        // chr(34) is used for (") symbol
        first = "&lt;p class=\"text12\"&gt;";
        last = "&lt;/p&gt;";

        Regex RE = new Regex(first + "(?&lt;MYDATA&gt;.*?(?=" + last + "))", RegexOptions.IgnoreCase | RegexOptions.Singleline);
        // try to extract the bufData  within the first and last tag
        Match m = RE.Match(firstLevelbufData);
        // got the result
        //txtResult.Text = m.Groups["MYDATA"].Value + "&lt;br&gt;";//sasi
        lblresult.Text = m.Groups["MYDATA"].Value + "&lt;br&gt;";
        // check if no information abour that domain is available
        //if (txtResult.Text.Length &lt; 10) txtResult.Text = "Domain "+ txtDomain .Text +" is Available";//sasi
        if (lblresult.Text.Length &lt; 10)

            lblresult.Text = "Domain " +  txtDomain.Text + " is Available";
    }
    catch (System.Net.WebException ex)
    {
        lblresult.Text = " Sorry the  information is currently not available !! ";
    } 

}
</code></pre>

<p>help me thank you</p>
