ameshkov / dnslookup

Simple command line utility to make DNS lookups to the specified server
MIT License
816 stars 72 forks source link

IP-based DoH fails on Windows: failed to verify certificate #54

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi,

I wonder why I can't use these types of DoH addresses:

https://8.8.8.8/dns_query https://1.1.1.1/dns_query https://77.88.8.8/dns_query

ameshkov commented 1 year ago

Hi, it should be dns-query, not dns_query

ghost commented 1 year ago

@ameshkov

Thank you for the correction but it doesn't work.

ameshkov commented 1 year ago

Works on my side image

ghost commented 1 year ago

@ameshkov

I'm sorry for my late response but it doesn't work on my side on Windows OS.

IMG_20230706_171027_130.jpg

ameshkov commented 1 year ago

@alidxdydz got it, that's a known issue on Windows, the bug is in crypto/tls library of Golang so it cannot be fixed on our side.

The only thing that I'd suggest is to disable TLS verification: VERIFY=0 dnslookup example.org https://1.1.1.1/dns-query