|
List Info
Thread: Checking Domain Availability
|
|
| Checking Domain Availability |
  United States |
2007-09-26 04:48:04 |
Hello,
Can anyone help me in getting code for checking domain
availability...?
I am doing a project in .net using C#...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Checking Domain Availability |
  United States |
2007-09-28 06:24:19 |
hi,
me got a simple and its working fine even in local..
protected void DNSLookup(string domain)
{
try
{
//performs the DNS lookup
IPHostEntry he = Dns.GetHostByName(domain);
IPAddress[] ip_addrs = he.AddressList;
lbl.Text = "";
foreach (IPAddress ip in ip_addrs)
{
lbl.Text += ip + "n";
lbl.Text = "<font color=#ff0000>Sorry..! Domain
name already in use,
please try with another one.</font><br>";
}
}
catch //(System.Exception ex)
{
lbl.Text = "<font color=#006633>Domain name is
available...!!!</
font><br>";
}
}
private void btnAvailable_Click(object sender,
System.EventArgs e)
{
string domainname="www."+
txtDomain.Text+"."+
ddlDomain.SelectedValue;
DNSLookup(domainname);
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Checking Domain Availability |

|
2007-09-28 01:08:51 |
|
hi Dejan,
Thanks for answering my query...
Tried using this code in local and gave 'yahoo' for checking. Please see the output i got
yahoo.com
NOTICE AND TERMS OF USE: You are not authorized to access or query our WHOIS database through the use of high-volume, automated, electronic processes. The
Data in Network Solutions' WHOIS database is provided by Network Solutions for information purposes only, and to assist persons in obtaining information about or related to a domain name registration record. Network Solutions does not guarantee its accuracy.
By submitting a WHOIS query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support
the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to Network Solutions (or its computer systems). The
compilation, repackaging, dissemination or other use of this Data is expressly prohibited without the prior written consent of Network Solutions. You agree not to use high-volume, automated, electronic processes to access or query the WHOIS
database. Network Solutions reserves the right to terminate your access to the WHOIS database in its sole discretion, including without limitation, for excessive querying of the WHOIS database or for failure to otherwise abide by this policy.
Network Solutions reserves the right to modify these terms at any time.
Get a FREE domain name registration, transfer, or renewal with any annual hosting package - or just $8.95 with monthly packages.
http://www.networksolutions.com
No match for "YAHOO.COM".
A lso I understood Request.Form["WhoisServer"] gives the hostname in the hostname dropdownlist.
Why we need to use Request.Form.?Why not to use WhoisServer.SelectedValue. / DomainName.Text? The values I gave for WhoisServer are whois.networksolutions.com (.COM, .NET, .EDU),
whois.ripe.net(Europe),whois.cira.ca (.CA),whois.nic.uk(.CO.UK),whois.domain-registry.nl(.NL).
But when I uploaded this page and checked online i didnt get any response. So I changed the value for TcpClient and gave as
- TcpClient objTCPC = new TcpClient(ddlWhoIs.SelectedValue,43);
Then also no respnse..
Again I gave as
didnt select hostname value from dropdown box.
System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at
System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at Reach.domain.btnAvailable_Click(Object sender, EventArgs e) in c:inetpubwwwrootOSDTestdomain.aspx.cs:line 61
Since I want to use this code in my project i dont want my client to see the terms and conditions.
Only need to know its available or not.
Hope I am not confusing you.
Please make me clear my doubts.
Regards,
Reshmy.
On 9/26/07, reshmy < reshmy.sandeep gmail.com">reshmy.sandeep gmail.com> wrote: > Hello, > > Can anyone help me in getting code for checking domain > availability...?
> I am doing a project in .net using C#... > >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ASP.Net Community" group. To post to this group, send email to aspnet googlegroups.com To unsubscribe from this group, send email to aspnet-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/aspnet?hl=en -~----------~----~----~----~------~----~------~--~---
|
[1-3]
|
|