Re: getting base domain and sub domains from url?
| From: | Kenneth Andresen | Date: | Sat, 16 Sep 2006 22:26:40 +0000 |
| Subject: | Re: getting base domain and sub domains from url? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241866@lists.php.net to get a copy of this message | ||
Thank you, Stut,
It gives the top level ones, but I can't seem to find the lower
specifications covering such as .co.uk .com.mx etc.
I am also starting to realize some countries may two levels of top
domains - in Norway for example you may get a .no domain, but there may
also be lower level top domains such as .mil.no.
I am not sure if there exists any general list for what I originally
looked for, but then again, then again, I am just realizing the specs I
looked at in fact does not require it this specific after all.
If there should be such a list somewhere I am still interested, but the
link you gave me is good enough for what I needed it for.
Again thank you!
Stut wrote:
> Kenneth Andresen wrote:
>
>> What I would like to know is if there are some lists of all these base
>> domains, or maybe some function already doing what I would like to do?
>>
>
> A full list of gTLDs and ccTLDs can be found here:
> http://www.iana.org/domain-names.htm
>
> -Stut
>
>
>