avoid uninitialised res variable; don't cache any-to-tcp TC responses; ignore EDNS bufsize on TCP; also apply udp-truncation-threshold to non-EDNS questions
remove useless cast; limit udp-truncation-threshold to 512 for non-EDNS UDP queries