Re:DNS Esoterica – Why you can't dig Switzerland
by teddyh on Thursday July 14, 2022 @08:29AM
(#32095144)
When writing scripts, always use the options to dig; i.e. in this case, use
instead of
Using the options eliminates any possibility of misinterpretations like this.
[ Parent
| on HN ]
Re:DNS Esoterica – Why you can't dig Switzerland
by ancientsofmumu on Thursday July 14, 2022 @09:17AM
(#32095706)
I kind of think this is a dig bug -- the man page indicates you can specify `name type class queryopt` in an unargumented style, but when using IN in this fashion against `ch` it does not work correctly (testing on Debian 11 stable). Compare these 4 sets of results:
dig ch NS IN +short
dig -q ch -t NS -c IN +short
dig uk NS IN +short
dig -q uk -t NS -c IN +short
Only when using the first form do you get a comment ";; Warning, extra class option" and the incorrect results. So even when using the full pattern of un-argumented options as outlined in the man page, it fails to work as expected specifically for ch.[dead]