Re: extracting the root domain from a URL [message #171705 is a reply to message #171700] |
Sun, 16 January 2011 22:45 |
Jonathan Stein
Messages: 43 Registered: September 2010
Karma:
|
Member |
|
|
Den 16-01-2011 17:57, Thomas 'PointedEars' Lahn skrev:
>> If you look up www.example.com, and there is no A or AAAA record for
>> example.com,
>
> There is here, although not an authoritative one:
example.com was - as the name implies - just an example.
In general, if there is no A record for the 2nd level, your method would
return the 3rd level (or higher), even for TLDs where the 2nd level is
more likely to be what Mike wants as the "root domain".
- But I think Mike got some inspiration now, and if Google can't help
him the rest of the way, he's welcome back.
Regards
Jonathan
|
|
|