whois/make_new_gtlds.pl
Marco d'Itri 171705cbde Use whois.nic.$TLD for the "new" gTLDs
The "new" gTLDs are contractually required by ICANN to provide port 43
whois service on this standard domain.
2014-05-02 04:26:50 +02:00

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|;
}