If you want to try out DNS-over-TLS then instructions are listed below.
Alternatively
Verisign Labs are kindly hosting a zone on a server running NSD patched to support DNS-over-TLS for testing purposes.
The zone is named starttls.verisignlabs.com and it has A, AAAA, and TXT records for names from ‘A’ to ‘Z’.
The IP address of the server is currently 173.255.254.151 - it might change so check for yourself.
To query with getdns, run ‘make getdns_query’ to generate the getdns_query wrapper script in the test directory then
To query this with drill use: (the IP address is used here simply to stop the server name resolution falling back to TCP because your local resolver doesn’t support DNS-over-TLS).
drill -t @173.255.254.151 b.starttls.verisignlabs.com (to see TCP query)
drill -C @173.255.254.151 b.starttls.verisignlabs.com (to see DNS-over-TLS query)
drill -C -D @173.255.254.151 b.starttls.verisignlabs.com (to do a DNSSEC lookup using DNS-over-TLS)
If you want to decode the DNS packets in Wireshark (use 1.12.1 or later)
download the server key file: nsd.key
configure the key in wireshark in Edit->Preferences