I’m writing a script that needs to query DNS record with a user specified DNS server. The DNS server may be in any protocol, including UDP, TCP, DNS over HTTPS (DoH), and DNS over TLS (DoT). I know dig is able to handle DNS for UDP and TCP (with +tcp […]