News for hackers. Stuff that matters.
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

   dig -q ch -t NS
instead of

  dig ch NS
Using the options eliminates any possibility of misinterpretations like this.
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]
Re:DNS Esoterica – Why you can't dig Switzerland by sha256sum on Thursday July 14, 2022 @08:58AM (#32095488)
Be 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