Re: extracting the root domain from a URL [message #171655 is a reply to message #171644] |
Fri, 14 January 2011 11:17 |
Captain Paralytic
Messages: 204 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Jan 13, 11:26 pm, Mike <mpea...@gmail.com> wrote:
> I thought .com, .asia, etc. was the "TLD". What would you call the
> 'site.com' or 'site.co.uk' portion of the url? Regardless of the
> name, can you suggest an effective and accurate way to extract it?
It is and it is also the root. It may not be the organisation root,
but it is the domain root.
You will see a lot of companies that have something.uk.com. This is
because someone registered uk.com and now sells subdomains to other
companies. you have no way of knowing how many domain elements you
need to get to the organisation root.
http://www.answers.com/topic/root-domain
|
|
|