mirror of
https://github.com/adulau/pdns-toolkit.git
synced 2024-12-22 08:46:00 +00:00
Crude version of the Passive DNS dump
This commit is contained in:
parent
799b4db625
commit
5e63edcf13
1 changed files with 22 additions and 0 deletions
22
tools/pdns-dump/fulldump.sh
Normal file
22
tools/pdns-dump/fulldump.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
|
||||
rm fulldump
|
||||
FILEDUMP="/home/adulau/fulldump.pdns"
|
||||
FILTER="*"
|
||||
redis-cli KEYS "s:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU
|
||||
MP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
||||
redis-cli KEYS "l:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU
|
||||
MP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
||||
redis-cli KEYS "o:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU
|
||||
MP}; VAL=`redis-cli GET ${LINE}`; echo "$VAL">>${FILEDUMP}; done;
|
||||
redis-cli KEYS "r:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU
|
||||
MP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done
|
||||
;
|
||||
|
||||
FILTER="*"
|
||||
redis-cli KEYS "v:${FILTER}" | while read LINE; do echo -n $LINE." = ">>${FILEDU
|
||||
MP}; VAL=`redis-cli --raw -d , SMEMBERS ${LINE}`; echo "$VAL">>${FILEDUMP}; done
|
||||
;
|
||||
|
||||
|
Loading…
Reference in a new issue