Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 1st, 2004, 01:18 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default List of valid domain extensions

This is not related to ASP. (But I am not finding any forum to discuss this). Sorry.

May I know where I can get an exhaustive list of valid domain extensions (.com, .net, .gov.in etc. etc.) ? Ideally it should be a live one in the sense when a new domain extension is approved, that extension should also come in this list.

This is for writing a validation function for emails and URLs.

Thanks

Madhu
Reply With Quote
  #2 (permalink)  
Old November 1st, 2004, 01:28 AM
Friend of Wrox
Points: 1,288, Level: 14
Points: 1,288, Level: 14 Points: 1,288, Level: 14 Points: 1,288, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2004
Location: Stockholm, Sweden
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

for this you have to check the DSNs (Domain Name Servers) for checking the domain exestense



(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is how you got it
Reply With Quote
  #3 (permalink)  
Old November 1st, 2004, 01:53 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

A left field reply; I find this email validation very good:

email=document.addUser.eMail.value;
var expression=/^([a-zA-Z0-9\-\._]+)@(([a-zA-Z0-9\-_]+\.)+)([a-z]{2,3})$/;
if(!(expression.test(email)) )
{
alert("Please enter a valid email address");
document.addUser.eMail.select();
document.addUser.eMail.focus();
return false;
}

This looks like a fairly good domain suffix list:
http://www.norid.no/domenenavnbaser/domreg.html

Wind is your friend
Matt
Reply With Quote
  #4 (permalink)  
Old November 1st, 2004, 02:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Dear Matt,

Thanks for this regular expression. This works correctly.

But this approves a domain like http://www.madhu.coo also. Actually there is no extension like coo. This is why I want to get a list of all valid domain extensions.

I just got an approx. list at

http://www.alldomains.com/alltlds.html

But I don't know whether it is exhaustive.

Thanks again for the replies.

Madhu
Reply With Quote
  #5 (permalink)  
Old November 1st, 2004, 04:38 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

You can't consider that to be the end of it. In future if required some new nomenclature would arrive. It is always hard to mention the list of valid domains/URLs in use. Only thing you can do is to write something like nslookup that immediately validates and results if the domain is valid or not based on domain name resolution.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #6 (permalink)  
Old August 16th, 2008, 10:35 AM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.icann.org/en/registries/t...el-domains.htm

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Extensions plb BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 130 November 24th, 2009 07:10 PM
Some Extensions plb BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 29th, 2008 11:57 AM
Same pages for sub domain from main domain vivek_inos ASP.NET 1.0 and 1.1 Professional 1 February 13th, 2007 10:15 AM
http://domain or http://www.domain anshul HTML Code Clinic 9 August 11th, 2004 01:09 AM
File Extensions nbnelson C# 2 August 25th, 2003 12:09 PM



All times are GMT -4. The time now is 08:30 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.