ameshkov / dnslookup

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

Command Line Option to ignore SSL validation errors #68

Closed sreevatsank1999 closed 3 months ago

sreevatsank1999 commented 3 months ago

Hi, I am working with a DoH server on localhost with a self-signed certificate. When I attempt a dns query, I get:

tls: failed to verify certificate: x509: certificate signed by unknown authority

It would be nice to have a command line flag to ignore SSL validation errors.

ameshkov commented 3 months ago

Try this: VERIFY=0 dnslookup example.org tls://dns-server-address