Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Extracting hostname from URI column



On Mon, Sep 17, 2007 at 12:18:56AM +0100, Gregory Stark wrote:
> 
> Not all countries break up their national tld space into sections like .co.uk
> or .com.au. Canadian domains can be bought directly under .ca like amazon.ca.
> 
> I think you'll have to store a specific list of tlds and how deep you want to
> look.

Another way to look at this is that any containing domain is just a
domain.  So .info is a domain, example.info is a domain, and in case
of the existence of host1.some.example.info, some.example.info is a
domain.  Also, co.uk is just as much a domain as yahoo.co.uk.  

Some poor misguided people at Netscape badly misunderstood the DNS
many years ago, and web browser cookies have been attempting to
recover from that misunderstanding ever since (with sometimes serious
security implications).  There's really no reliable way to deduce
common responsibility from the DNS labels, and it's sometimes
terrifically important not to make that mistake.

A

-- 
Andrew Sullivan  | ajs(at)crankycanuck(dot)ca
The plural of anecdote is not data.
		--Roger Brinner



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group