remove useless cast; limit udp-truncation-threshold to 512 for non-EDNS UDP queries