2019-12-09 08:12:48 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
function log() {
|
|
|
|
echo -e "\033[33m$@\033[0m"
|
|
|
|
}
|
|
|
|
|
2019-12-13 18:36:08 +01:00
|
|
|
./fetch_resources.sh
|
2019-12-13 00:11:21 +01:00
|
|
|
./import_rules.sh
|
|
|
|
|
|
|
|
# TODO Fetch 'em
|
|
|
|
log "Reading PTR records…"
|
2019-12-14 23:59:50 +01:00
|
|
|
pv ptr.json.gz | gunzip | ./feed_dns.py
|
2019-12-13 00:11:21 +01:00
|
|
|
log "Reading A records…"
|
2019-12-14 23:59:50 +01:00
|
|
|
pv a.json.gz | gunzip | ./feed_dns.py
|
2019-12-13 00:11:21 +01:00
|
|
|
log "Reading CNAME records…"
|
2019-12-14 23:59:50 +01:00
|
|
|
pv cname.json.gz | gunzip | ./feed_dns.py
|
2019-12-13 00:11:21 +01:00
|
|
|
|
|
|
|
log "Pruning old data…"
|
|
|
|
./database.py --prune
|
|
|
|
|
|
|
|
./filter_subdomains.sh
|
2019-12-09 08:12:48 +01:00
|
|
|
|