add an +opt display flag for dig
Description
As part of providing support or education to non-experts in the DNS, I find it useful to be able to narrow the output of dig
to just the relevant bits, while providing a simple, reproducible, easily understood command to the other person. For example, it's routine for me to do something like dig +noall +answer ...
or dig +noall +authority...
.
I recently ran into a case where it would have been useful to focus on the OPT pseudosection, but found no easy antidote to +noall
for it. +comments
is close, but not precise. Likewise there are a number of things I can do with grep
, or combining +yaml
with /bin/yq
to limit the output, but at the expense of clarity in the command I share.
Request
It would be helpful to have an +opt
(or equivalent) display flag in dig, which shows only the OPT pseudo-section without any other output, similarly to flags +answer
, +authority
, and +additional
.