Mercurial > hg > anonet-resdb
view contrib/whoisd/whoisd-cached.sh @ 1233:1b7ce27f434c draft
added as 1234 and cidr 21.44.44.0/24
Committer: ano <ano@x>
author | ano <root@x> |
---|---|
date | Sun, 02 Dec 2018 23:01:26 +0000 |
parents | a461bd595421 |
children |
line wrap: on
line source
#!/bin/sh cd /var/db/resdb commit=$(git log -1 | head -n1 | tr -cd 'a-f0-9') query=$(head -n1 | tr -cd 'a-zA-Z0-9.:_-') if ! cat "/var/cache/whois/${commit}-${query}" 2>/dev/null;then printf "%s\n" "${query}" | /var/db/resdb/contrib/whoisd/whoisd.pl | tee "/var/cache/whois/${commit}-${query}" fi