Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2004, 01:18 AM
Friend of Wrox
 
Join Date: Oct 2003
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
 
Old November 1st, 2004, 01:28 AM
Friend of Wrox
 
Join Date: Jun 2004
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
 
Old November 1st, 2004, 01:53 AM
Friend of Wrox
 
Join Date: Jan 2004
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
 
Old November 1st, 2004, 02:34 AM
Friend of Wrox
 
Join Date: Oct 2003
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
 
Old November 1st, 2004, 04:38 PM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old August 16th, 2008, 10:35 AM
Registered User
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.