Scripting dnssec-verify - processing command output

Matthew Richardson matthew-l at
Sat Feb 6 19:02:28 UTC 2021

I have been using Perl to do a reasonable amount of scripting, running bind
utilities and processing the results into variables.  The details below are
from Bind 9.11.27 on Centos 7.

The code:-

    $resp = `dig -t soa`;
    print "dig resp:'$resp'\n";

gets the result of the dig command into the variable $resp and prints it.


    $resp = `dnssec-verify -I text -o`;
    print "dnssec-verify resp:'$resp'\n";

displays the results of the dnssec-verify command on the console and leaves
the variable $resp empty.

Any ideas would be appreciated...

As an aside, using dnssec-keygen DOES put the results into the variable.

Best wishes,

More information about the bind-users mailing list