On Tue, Jan 13, 2015 at 08:51:03AM -0500, Jerry wrote: > > $ nss=$(dig +short -t ns medicaljournals.se) > > $ mx=$(dig +short -t mx medicaljournals.se | sort -n | head -1 | awk > > '{print $NF}') > > $ for ns in $nss > > do > > echo "== $ns" > > dig -4 +norecur +dnssec +noall +comment +ans +auth +nocl +nottl > > +nosplit -t tlsa _25._tcp.$mx @$ns > > done | > > pcregrep -v '\.\s+RRSIG' > > Victor, is there anyway you could translate that so it could be used with > "drill" instead of "dig"? If not, I will just keep trying to do it myself.
Just install dig, you're allowed to have both on your system. I also have drill. The dig(1) command has a lot more switches to control the output. I don't believe that drill can do the same without significant post-processing with awk, sed, Perl, Python, etc. -- Viktor.