TopLevel Domain Info 
Author Message
 TopLevel Domain Info

The following code will convert the two letter country code extension on a
domain name into the name of its parent country.

FUNCTION TLDInfo(BYVAL tld AS STRING) AS STRING

  FOR x = 1 TO DATACOUNT \ 2
    IF tld = READ$(x * 2 - 1) THEN
      FUNCTION = READ$(x * 2)
      EXIT FUNCTION
    END IF
  NEXT x

  DATA "ad","Andorra"
  DATA "ae","United Arab Emirates"
  DATA "af","Afghanistan"
  DATA "ag","Antigua and Barbuda"
  DATA "ai","Anguilla"
  DATA "al","Albania"
  DATA "am","Armenia"
  DATA "an","Netherlands Antilles"
  DATA "ao","Angola"
  DATA "aq","Antarctica"
  DATA "ar","Argentina"
  DATA "as","American Somoa"
  DATA "at","Austria"
  DATA "au","Australia"
  DATA "aw","Aruba"
  DATA "az","Azerbaijan"
  DATA "ba","Bosnia and Herzegowina"
  DATA "bb","Barbados"
  DATA "bd","Bangladesh"
  DATA "be","Belgium"
  DATA "bf","Burkina Faso"
  DATA "bg","Bulgaria"
  DATA "bh","Bahrain"
  DATA "bi","Burundi"
  DATA "biz","Commercial"
  DATA "bj","Benin"
  DATA "bm","Bermuda"
  DATA "bn","Brunei"
  DATA "bo","Bolivia"
  DATA "br","Brazil"
  DATA "bs","The Bahamas"
  DATA "bt","Bhutan"
  DATA "bv","Bouvet Island"
  DATA "bw","Botswana"
  DATA "by","Belarus"
  DATA "bz","Belize"
  DATA "ca","Canada"
  DATA "cc","Cocos [Keeling] Islands"
  DATA "cd","Congo Democratic Republic"
  DATA "cf","Central African Republic"
  DATA "cg","Congo"
  DATA "ch","Switzerland"
  DATA "ci","Cote d'Ivoire"
  DATA "ck","Cook Islands"
  DATA "cl","Chile"
  DATA "cm","Cameroon"
  DATA "cn","China"
  DATA "co","Columbia"
  DATA "co.uk","Great Britian"
  DATA "com","Commercial"
  DATA "com.au","Australia"
  DATA "cr","Costa Rica"
  DATA "cu","Cuba"
  DATA "cv","Cape Verde"
  DATA "cx","Christmas Island"
  DATA "cy","Cyprus"
  DATA "cz","Czech Republic"
  DATA "de","Germany"
  DATA "dj","Djibouti"
  DATA "dk","Denmark"
  DATA "dm","Dominica"
  DATA "do","Dominican Republic"
  DATA "dz","Algeria"
  DATA "ec","Ecuador"
  DATA "edu","Global"
  DATA "ee","Estonia"
  DATA "eg","Egypt"
  DATA "eh","Western Sahara"
  DATA "er","Eritrea"
  DATA "es","Spain"
  DATA "et","Ethiopia"
  DATA "fi","Finland"
  DATA "fj","Fiji"
  DATA "fk","Falklands Islands"
  DATA "fm","Micronesia"
  DATA "fo","Faroe Islands"
  DATA "fr","France"
  DATA "ga","Gabon"
  DATA "gd","Grenada"
  DATA "ge","Georgia"
  DATA "gf","French Guiana"
  DATA "gh","Ghana"
  DATA "gi","Gibraltar"
  DATA "gl","Greenland"
  DATA "gm","Gambia"
  DATA "gn","Guinea"
  DATA "gov","United States Government"
  DATA "gp","Guadeloupe"
  DATA "gq","Equatorial Guinea"
  DATA "gr","Greece"
  DATA "gs","South Georgia and the South Sandwich Islands"
  DATA "gt","Guatemala"
  DATA "gu","Guam"
  DATA "gy","Guyana"
  DATA "hk","Hong Kong"
  DATA "hm","Heard and Mc Donald Islands"
  DATA "hn","Honduras"
  DATA "hr","Croatia"
  DATA "ht","Haiti"
  DATA "ie","Ireland"
  DATA "il","Israel"
  DATA "im","Isle of Man"
  DATA "in","India"
  DATA "io","British Indian Ocean Territory"
  DATA "iq","Iraq"
  DATA "ir","Iran"
  DATA "is","Iceland"
  DATA "it","Italy"
  DATA "jm","Jamaica"
  DATA "jo","Jordan"
  DATA "jp","Japan"
  DATA "ke","Kenya"
  DATA "kg","Kyrgyzstan"
  DATA "kh","Cambodia"
  DATA "ki","Kiribati"
  DATA "km","Comoros"
  DATA "kn","Saint Kitts and Nevis"
  DATA "kp","Democratic People's Republic of Korea"
  DATA "kr","Republic of Korea"
  DATA "kw","Kuwait"
  DATA "ky","The Cayman Islands"
  DATA "kz","Kazakhstan"
  DATA "la","Laos"
  DATA "lb","Lebanon"
  DATA "lc","Saint Lucia"
  DATA "li","Liechtenstein"
  DATA "lr","Liberia"
  DATA "ls","Lesotho"
  DATA "lt","Lithuania"
  DATA "lu","Luxembourg"
  DATA "lv","Latvia"
  DATA "ly","Libyan Arab Jamahiriya"
  DATA "ma","Morocco"
  DATA "mc","Monaco"
  DATA "md","Moldova"
  DATA "mg","Madagascar"
  DATA "mh","Marshall Islands"
  DATA "mil","United States Military"
  DATA "mk","Macedonia"
  DATA "ml","Mali"
  DATA "mm","Myanmar"
  DATA "mn","Mongolia"
  DATA "mo","Macao"
  DATA "mp","Northern Mariana Islands"
  DATA "mq","Martinique"
  DATA "mr","Mauritania"
  DATA "ms","Montserrat"
  DATA "mt","Malta"
  DATA "mu","Mauritius"
  DATA "mv","Moldives"
  DATA "mw","Malawi"
  DATA "my","Malaysia"
  DATA "mz","Mozambique"
  DATA "na","Namibia"
  DATA "nc","New Caledonia"
  DATA "ne","Niger"
  DATA "net","Network"
  DATA "nf","Norfolk Island"
  DATA "ng","Nigeria"
  DATA "ni","Nicaragua"
  DATA "nl","Netherlands"
  DATA "no","Norway"
  DATA "np","Nepal"
  DATA "nr","Nauru"
  DATA "nu","Niue"
  DATA "nz","New Zealand"
  DATA "om","Oman"
  DATA "org","Organization"
  DATA "pa","Panama"
  DATA "pe","Peru"
  DATA "pf","French Polynesia"
  DATA "pg","Papua New Guinea"
  DATA "ph","Philippines"
  DATA "pk","Pakistan"
  DATA "pl","Poland"
  DATA "pm","St. Pierre and Miquelon"
  DATA "pn","Pitcairn"
  DATA "pr","Puerto Rico"
  DATA "pt","Portugal"
  DATA "pw","Palau"
  DATA "py","Paraguay"
  DATA "qa","Qatar"
  DATA "re","Reunion"
  DATA "ro","Romania"
  DATA "ru","Russia"
  DATA "rw","Rwanda"
  DATA "sa","Saudi Arabia"
  DATA "sb","Solomon Islands"
  DATA "sc","Seychelles"
  DATA "sd","Sudan"
  DATA "se","Sweden"
  DATA "sg","Singapore"
  DATA "si","Slovenia"
  DATA "sj","Svalbard and Jan Mayen Islands"
  DATA "sk","Slovakia"
  DATA "sl","Sierra Leone"
  DATA "sm","San Marino"
  DATA "sn","Senegal"
  DATA "so","Somalia"
  DATA "sr","Suriname"
  DATA "st","Sao Tome and Principe"
  DATA "sv","El Salvador"
  DATA "sy","Syria"
  DATA "sz","Swaziland"
  DATA "tc","Turks and Caicos Islands"
  DATA "td","Chad"
  DATA "tf","French Southern Territories"
  DATA "tg","Togo"
  DATA "th","Thailand"
  DATA "tj","Tajikistan"
  DATA "tm","Turkmenistan"
  DATA "tn","Tunisia"
  DATA "tp","East Timor"
  DATA "tr","Turkey"
  DATA "tt","Trinidad and Tobago"
  DATA "tv","Tuvalu"
  DATA "tw","Taiwan"
  DATA "tz","Tanzania"
  DATA "ug","Uganda"
  DATA "uk","Great Britian"
  DATA "um","United States Minor Outlying Islands"
  DATA "uy","Uruguay"
  DATA "uz","Uzbekistan"
  DATA "va","Vatican City State"
  DATA "vc","Saint Vincent and the Grenadines"
  DATA "ve","Venezeula"
  DATA "vg","{*filter*} Islands [British]"
  DATA "vi","{*filter*} Islands [US]"
  DATA "vn","Vietnam"
  DATA "vu","Vanuatu"
  DATA "wf","Wallis and Futuna Islands"
  DATA "ws","Samoa"
  DATA "ye","Yemen"
  DATA "yt","Mayotte"
  DATA "yu","Yugoslavia"
  DATA "zm","Zambia"
  DATA "zr","Zaire"
  DATA "zw","Zimbabwe"

END FUNCTION



Sun, 01 Feb 2004 01:25:12 GMT  
 TopLevel Domain Info

Quote:

>The following code will convert the two letter country code extension on a
>domain name into the name of its parent country.

In your code you have dropped out the following domain name "ua", "Ukraine"

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts



Sun, 01 Feb 2004 06:38:10 GMT  
 TopLevel Domain Info
Nice list.  But I would add

DATA "us", "United States"

and change a couple of entries

   DATA "uk","Great Britain"  
   DATA "co.uk","Commercial, Great Britain"
   DATA "com.au","Commercial, Australia"

Cheers

Derek

Quote:

> The following code will convert the two letter country code extension on a
> domain name into the name of its parent country.

> FUNCTION TLDInfo(BYVAL tld AS STRING) AS STRING

>   FOR x = 1 TO DATACOUNT \ 2
>     IF tld = READ$(x * 2 - 1) THEN
>       FUNCTION = READ$(x * 2)
>       EXIT FUNCTION
>     END IF
>   NEXT x

>   DATA "ad","Andorra"
>   DATA "ae","United Arab Emirates"
>   DATA "af","Afghanistan"
>   DATA "ag","Antigua and Barbuda"
>   DATA "ai","Anguilla"
>   DATA "al","Albania"
>   DATA "am","Armenia"
>   DATA "an","Netherlands Antilles"
>   DATA "ao","Angola"
>   DATA "aq","Antarctica"
>   DATA "ar","Argentina"
>   DATA "as","American Somoa"
>   DATA "at","Austria"
>   DATA "au","Australia"
>   DATA "aw","Aruba"
>   DATA "az","Azerbaijan"
>   DATA "ba","Bosnia and Herzegowina"
>   DATA "bb","Barbados"
>   DATA "bd","Bangladesh"
>   DATA "be","Belgium"
>   DATA "bf","Burkina Faso"
>   DATA "bg","Bulgaria"
>   DATA "bh","Bahrain"
>   DATA "bi","Burundi"
>   DATA "biz","Commercial"
>   DATA "bj","Benin"
>   DATA "bm","Bermuda"
>   DATA "bn","Brunei"
>   DATA "bo","Bolivia"
>   DATA "br","Brazil"
>   DATA "bs","The Bahamas"
>   DATA "bt","Bhutan"
>   DATA "bv","Bouvet Island"
>   DATA "bw","Botswana"
>   DATA "by","Belarus"
>   DATA "bz","Belize"
>   DATA "ca","Canada"
>   DATA "cc","Cocos [Keeling] Islands"
>   DATA "cd","Congo Democratic Republic"
>   DATA "cf","Central African Republic"
>   DATA "cg","Congo"
>   DATA "ch","Switzerland"
>   DATA "ci","Cote d'Ivoire"
>   DATA "ck","Cook Islands"
>   DATA "cl","Chile"
>   DATA "cm","Cameroon"
>   DATA "cn","China"
>   DATA "co","Columbia"
>   DATA "co.uk","Great Britian"
>   DATA "com","Commercial"
>   DATA "com.au","Australia"
>   DATA "cr","Costa Rica"
>   DATA "cu","Cuba"
>   DATA "cv","Cape Verde"
>   DATA "cx","Christmas Island"
>   DATA "cy","Cyprus"
>   DATA "cz","Czech Republic"
>   DATA "de","Germany"
>   DATA "dj","Djibouti"
>   DATA "dk","Denmark"
>   DATA "dm","Dominica"
>   DATA "do","Dominican Republic"
>   DATA "dz","Algeria"
>   DATA "ec","Ecuador"
>   DATA "edu","Global"
>   DATA "ee","Estonia"
>   DATA "eg","Egypt"
>   DATA "eh","Western Sahara"
>   DATA "er","Eritrea"
>   DATA "es","Spain"
>   DATA "et","Ethiopia"
>   DATA "fi","Finland"
>   DATA "fj","Fiji"
>   DATA "fk","Falklands Islands"
>   DATA "fm","Micronesia"
>   DATA "fo","Faroe Islands"
>   DATA "fr","France"
>   DATA "ga","Gabon"
>   DATA "gd","Grenada"
>   DATA "ge","Georgia"
>   DATA "gf","French Guiana"
>   DATA "gh","Ghana"
>   DATA "gi","Gibraltar"
>   DATA "gl","Greenland"
>   DATA "gm","Gambia"
>   DATA "gn","Guinea"
>   DATA "gov","United States Government"
>   DATA "gp","Guadeloupe"
>   DATA "gq","Equatorial Guinea"
>   DATA "gr","Greece"
>   DATA "gs","South Georgia and the South Sandwich Islands"
>   DATA "gt","Guatemala"
>   DATA "gu","Guam"
>   DATA "gy","Guyana"
>   DATA "hk","Hong Kong"
>   DATA "hm","Heard and Mc Donald Islands"
>   DATA "hn","Honduras"
>   DATA "hr","Croatia"
>   DATA "ht","Haiti"
>   DATA "ie","Ireland"
>   DATA "il","Israel"
>   DATA "im","Isle of Man"
>   DATA "in","India"
>   DATA "io","British Indian Ocean Territory"
>   DATA "iq","Iraq"
>   DATA "ir","Iran"
>   DATA "is","Iceland"
>   DATA "it","Italy"
>   DATA "jm","Jamaica"
>   DATA "jo","Jordan"
>   DATA "jp","Japan"
>   DATA "ke","Kenya"
>   DATA "kg","Kyrgyzstan"
>   DATA "kh","Cambodia"
>   DATA "ki","Kiribati"
>   DATA "km","Comoros"
>   DATA "kn","Saint Kitts and Nevis"
>   DATA "kp","Democratic People's Republic of Korea"
>   DATA "kr","Republic of Korea"
>   DATA "kw","Kuwait"
>   DATA "ky","The Cayman Islands"
>   DATA "kz","Kazakhstan"
>   DATA "la","Laos"
>   DATA "lb","Lebanon"
>   DATA "lc","Saint Lucia"
>   DATA "li","Liechtenstein"
>   DATA "lr","Liberia"
>   DATA "ls","Lesotho"
>   DATA "lt","Lithuania"
>   DATA "lu","Luxembourg"
>   DATA "lv","Latvia"
>   DATA "ly","Libyan Arab Jamahiriya"
>   DATA "ma","Morocco"
>   DATA "mc","Monaco"
>   DATA "md","Moldova"
>   DATA "mg","Madagascar"
>   DATA "mh","Marshall Islands"
>   DATA "mil","United States Military"
>   DATA "mk","Macedonia"
>   DATA "ml","Mali"
>   DATA "mm","Myanmar"
>   DATA "mn","Mongolia"
>   DATA "mo","Macao"
>   DATA "mp","Northern Mariana Islands"
>   DATA "mq","Martinique"
>   DATA "mr","Mauritania"
>   DATA "ms","Montserrat"
>   DATA "mt","Malta"
>   DATA "mu","Mauritius"
>   DATA "mv","Moldives"
>   DATA "mw","Malawi"
>   DATA "my","Malaysia"
>   DATA "mz","Mozambique"
>   DATA "na","Namibia"
>   DATA "nc","New Caledonia"
>   DATA "ne","Niger"
>   DATA "net","Network"
>   DATA "nf","Norfolk Island"
>   DATA "ng","Nigeria"
>   DATA "ni","Nicaragua"
>   DATA "nl","Netherlands"
>   DATA "no","Norway"
>   DATA "np","Nepal"
>   DATA "nr","Nauru"
>   DATA "nu","Niue"
>   DATA "nz","New Zealand"
>   DATA "om","Oman"
>   DATA "org","Organization"
>   DATA "pa","Panama"
>   DATA "pe","Peru"
>   DATA "pf","French Polynesia"
>   DATA "pg","Papua New Guinea"
>   DATA "ph","Philippines"
>   DATA "pk","Pakistan"
>   DATA "pl","Poland"
>   DATA "pm","St. Pierre and Miquelon"
>   DATA "pn","Pitcairn"
>   DATA "pr","Puerto Rico"
>   DATA "pt","Portugal"
>   DATA "pw","Palau"
>   DATA "py","Paraguay"
>   DATA "qa","Qatar"
>   DATA "re","Reunion"
>   DATA "ro","Romania"
>   DATA "ru","Russia"
>   DATA "rw","Rwanda"
>   DATA "sa","Saudi Arabia"
>   DATA "sb","Solomon Islands"
>   DATA "sc","Seychelles"
>   DATA "sd","Sudan"
>   DATA "se","Sweden"
>   DATA "sg","Singapore"
>   DATA "si","Slovenia"
>   DATA "sj","Svalbard and Jan Mayen Islands"
>   DATA "sk","Slovakia"
>   DATA "sl","Sierra Leone"
>   DATA "sm","San Marino"
>   DATA "sn","Senegal"
>   DATA "so","Somalia"
>   DATA "sr","Suriname"
>   DATA "st","Sao Tome and Principe"
>   DATA "sv","El Salvador"
>   DATA "sy","Syria"
>   DATA "sz","Swaziland"
>   DATA "tc","Turks and Caicos Islands"
>   DATA "td","Chad"
>   DATA "tf","French Southern Territories"
>   DATA "tg","Togo"
>   DATA "th","Thailand"
>   DATA "tj","Tajikistan"
>   DATA "tm","Turkmenistan"
>   DATA "tn","Tunisia"
>   DATA "tp","East Timor"
>   DATA "tr","Turkey"
>   DATA "tt","Trinidad and Tobago"
>   DATA "tv","Tuvalu"
>   DATA "tw","Taiwan"
>   DATA "tz","Tanzania"
>   DATA "ug","Uganda"
>   DATA "uk","Great Britian"
>   DATA "um","United States Minor Outlying Islands"
>   DATA "uy","Uruguay"
>   DATA "uz","Uzbekistan"
>   DATA "va","Vatican City State"
>   DATA "vc","Saint Vincent and the Grenadines"
>   DATA "ve","Venezeula"
>   DATA "vg","{*filter*} Islands [British]"
>   DATA "vi","{*filter*} Islands [US]"
>   DATA "vn","Vietnam"
>   DATA "vu","Vanuatu"
>   DATA "wf","Wallis and Futuna Islands"
>   DATA "ws","Samoa"
>   DATA "ye","Yemen"
>   DATA "yt","Mayotte"
>   DATA "yu","Yugoslavia"
>   DATA "zm","Zambia"
>   DATA "zr","Zaire"
>   DATA "zw","Zimbabwe"

> END FUNCTION



Sun, 01 Feb 2004 08:15:04 GMT  
 TopLevel Domain Info

Quote:



> >The following code will convert the two letter country code extension on
a
> >domain name into the name of its parent country.

> In your code you have dropped out the following domain name "ua",
"Ukraine"

Well, you make one (1) person I've seen with that domain.....

MCM



Sun, 01 Feb 2004 19:22:50 GMT  
 TopLevel Domain Info
Useful!  I've been wondering what .to
is.

--
cheers
Jonathan Berry
http://www.islandnet.com/~jberry/      to know more than you want



Sun, 01 Feb 2004 16:08:05 GMT  
 TopLevel Domain Info

Quote:

>Well, you make one (1) person I've seen with that domain.....

>MCM

Well, many times you saw the domain "uz"-"Uzbekistan", for example. But it
exists, as well as many others. As a whole very useful list. Thank.

Eugene Vasiliu

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts



Mon, 02 Feb 2004 07:14:52 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. SPAM again [was: Re: .BIZ .INFO domain extensions]

2. .BIZ .INFO domain extensions

3. (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE)

4. toplevel in another toplevel as virtual root

5. Toplevel -container / Toplevel -use does not work ??

6. Killing child toplevel of paent toplevel

7. Time domain to frequency domain...and back again

8. convert time domain to frequency domain

9. public domain prolog for apollo domain

10. Outputting info from awk and using the info to name the awk output file

 

 
Powered by phpBB® Forum Software