check_dig: patch to make dig honor -t option

Just turning attached patch of github issue #774 into a push request