Re: getting base domain and sub domains from url?
| From: | Google Kreme | Date: | Sun, 17 Sep 2006 00:02:59 +0000 |
| Subject: | Re: getting base domain and sub domains from url? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241867@lists.php.net to get a copy of this message | ||
On 16 Sep 2006, at 16:26 , Kenneth Andresen wrote:
It gives the top level ones, but I can't seem to find the lower specifications covering such as .co.uk .com.mx etc.There is no lower 'specification' because each one is unique. .mx is administered, for example, by www.nic.mx (I believe), so it is their option to subdivide the .mx tld however they see fit. Each tld gets to do this however it wants. Mexico chose .com.mx and .gob.mx (the latter for government sites), for example, while the UK chose .co.uk and .me.uk (the latter for personal pages), etc. Since each one of these tlds is managed independently, it would be nearly impossible to construct a list of the possible second level domains for al the tlds. Sure, you might be able to get .mx and .uk info fairly easily, but what about .cc or .cx or .fj? And as soon as you do construct such a list, it will be out of date. If you are trying to verify a valid email address or a valid domain, there are better ways. -- Why can't you be in a good mood? How hard is it to decide to be in a good mood and be in a good mood once in a while?"