summaryrefslogtreecommitdiff
path: root/contrib/whoisd/whoisd.pl
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2013-08-23 18:22:48 +0000
committerepoch <epoch@hacking.allowed.org>2013-08-23 18:22:48 +0000
commit954370bda476ad83458fde843a43f0477c6fcb42 (patch)
treeecb63c2ed192e4b7cef2229e939279075bb50c9f /contrib/whoisd/whoisd.pl
parent85e32860a7dd614f433018d3e0371ecf4a96543f (diff)
downloadresdb-954370bda476ad83458fde843a43f0477c6fcb42.tar.gz
resdb-954370bda476ad83458fde843a43f0477c6fcb42.zip
updated whoid
Diffstat (limited to 'contrib/whoisd/whoisd.pl')
-rwxr-xr-xcontrib/whoisd/whoisd.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/whoisd/whoisd.pl b/contrib/whoisd/whoisd.pl
index 8580475..06c2cdf 100755
--- a/contrib/whoisd/whoisd.pl
+++ b/contrib/whoisd/whoisd.pl
@@ -97,3 +97,12 @@ foreach(split(/\n/,`grep '^$QUERY\$' */owner | cut -d/ -f1`)) {
$out =~ s/\n//g;
printf "%-20s %s\n", "ASN" . ":", $out;
}
+
+foreach(split(/\n/,`grep -i -e "^$QUERY\$" "$RESDB/db/dom"/*/*/owner`)) {
+ $out = $_;
+ $out =~ s/.*\/db\/dom\/(.+?)\/(.+?)\/owner.*/\2\.\1/;
+ if ($out ne "") { #fix this comparison.
+ printf "%-20s %s\n", "domain" . ":", $out;
+ }
+}
+#printf "%-20s %s\n", "notice:","$QUERY did not claim any domains yet";