in reply to Extracting domain names from FQDNs
With adjustments for the specific Whois module being used, of course.my $host = 'www.lexicon.co.uk'; my @parts = split /\./, $host; my $domain = pop @parts; my $whois = ''; while (@parts and not $whois) { $domain = pop(@parts) . ".$domain"; $whois = Whois($domain); } print $whois;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re(2): Extracting domain names from FQDNs
by Ovid (Cardinal) on Dec 02, 2000 at 01:07 UTC | |
by Blue (Hermit) on Dec 02, 2000 at 01:46 UTC |