Hacker News new | ask | show | jobs
by ancientsofmumu 1433 days ago
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.