summaryrefslogtreecommitdiff
path: root/make_tld_serv.pl
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-06 13:10:00 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-06 13:10:00 +0300
commit8c13fdabc9833ead8afb57f6c4b476fb7a1ab9e6 (patch)
tree6acdbdadfef2a251bb95ef0aed0f673f0f2bbfa9 /make_tld_serv.pl
parent45eb26992d9fa4efd74b7b283834dcfc212a403f (diff)
parentabf1f11b61b525aa6b95673e50d4be90505b1d67 (diff)
downloadwhois-master.tar.gz
Merge git://github.com/rfc1036/whoisHEADmaster
Diffstat (limited to 'make_tld_serv.pl')
-rwxr-xr-xmake_tld_serv.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/make_tld_serv.pl b/make_tld_serv.pl
index 60d557c..0734702 100755
--- a/make_tld_serv.pl
+++ b/make_tld_serv.pl
@@ -9,14 +9,15 @@ while (<>) {
s/^\s+//; s/\s+$//;
next if /^$/;
- die "format error: $_" unless
- (my ($a, $b) = /^([\w\d\.-]+)\s+([\w\d\.:-]+|[A-Z]+\s+.*)$/);
+ die "format error: $_" if not
+ (my ($a, $b) = /^\.(\w[\w\d\.-]+)\s+([\w\d\.:-]+|[A-Z]+\s+.*)$/);
$b =~ s/^W(?:EB)?\s+/\\x01/;
$b =~ s/^VERISIGN\s+/\\x04" "/;
$b = "\\x03" if $b eq 'NONE';
$b = "\\x08" if $b eq 'AFILIAS';
$b = "\\x0C" if $b eq 'ARPA';
- print qq( "$a",\t"$b",\n);
+ $b = "\\x0D" if $b eq 'IP6';
+ print qq| "$a",\t"$b",\n|;
}