View Single Post
  #6   (View Single Post)  
Old 19th November 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

To produce output to stdout
Code:
for FILE in /var/named/*db ; do ./extract  $FILE ; done
To get it into a file 'all-records.txt':
Code:
for FILE in /var/named/*db ; do ./extract  $FILE ; done >all-records.txt
You can filter out the ftp and localhost entries by using grep
Code:
./extract zone-example | egrep -v '(^localhost|^ftp)'
accounttest.com. IN A 35.45.68.21
Cannot you just regenerate those virtual hosts sections like I did in the first script?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote