Re: Parsing dig output consistently

2014-09-17 Thread Anand Buddhdev
On 17/09/2014 13:57, Mark Andrews wrote: Hi Mark, > awk '$5 == "status:" { rcode = $6 } $3 == "SOA" { print $1, rcode }' So with "+noall +comments +question" and this bit of awk, I can get a pretty list containing ";zone RCODE," pairs :) Thanks! Anand __

Re: Parsing dig output consistently

2014-09-17 Thread Mark Andrews
awk '$5 == "status:" { rcode = $6 } $3 == "SOA" { print $1, rcode }' In message <54197448.1000...@ripe.net>, Anand Buddhdev writes: > Hello people, > > I've been trying to figure out how to use dig in a shell script to send > a bunch of queries, and then parse the output with awk. I have a file

Parsing dig output consistently

2014-09-17 Thread Anand Buddhdev
Hello people, I've been trying to figure out how to use dig in a shell script to send a bunch of queries, and then parse the output with awk. I have a file called "myzones" containing the zones I want to query: example.com example.org example.net If I run: dig @server -t soa +norec +noall +ques

Re: How to block part of a zone

2014-09-17 Thread Merijntje Tak
On 16-09-14 18:20, King, Harold Clyde (Hal) wrote: > Resolve all traffic for example.com from example.com¹s dns servers, but > stop badhost.example.com. Ideally you would use RPZ records for this purpose. You can override single records with another record. RPZ is only available in bind 9.8+. An ex