3 ms·
When writing scripts, always use the options to dig; i.e. in this case, use dig -q ch -t NS instead of dig ch NS Using the options eliminates any possi
by teddyh 4y ago
When writing scripts, always use the options to dig; i.e. in this case, use
dig -q ch -t NS
instead of
dig ch NS
Using the options eliminates any possibility of misinterpretations like this.
- distantsounds 4y ago
- sha256sum 4y agoBe kind. Don't be snarky. Have curious conversation; don't cross-examine. Please don't fulminate. Please don't sneer, including at the rest of the community. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- ancientsofmumu 4y agoI 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.