mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
The "new" gTLDs are contractually required by ICANN to provide port 43 whois service on this standard domain.
17 lines
199 B
Perl
Executable File
17 lines
199 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
use warnings;
|
|
use strict;
|
|
|
|
while (<>) {
|
|
chomp;
|
|
s/#.*$//;
|
|
s/^\s+//; s/\s+$//;
|
|
next if /^$/;
|
|
|
|
die "format error: $_" if not /^((?:xn--)?[a-z0-9]+)$/;
|
|
|
|
print qq| ".$_",\n|;
|
|
}
|
|
|