[GH-ISSUE #68] Command Line Option to ignore SSL validation errors #49

Closed
opened 2026-03-14 01:10:10 +03:00 by kerem · 3 comments
Owner

Originally created by @sreevatsank1999 on GitHub (May 19, 2024).
Original GitHub issue: https://github.com/ameshkov/dnslookup/issues/68

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.

Originally created by @sreevatsank1999 on GitHub (May 19, 2024). Original GitHub issue: https://github.com/ameshkov/dnslookup/issues/68 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.
kerem 2026-03-14 01:10:10 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ameshkov commented on GitHub (May 20, 2024):

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

<!-- gh-comment-id:2119903423 --> @ameshkov commented on GitHub (May 20, 2024): Try this: `VERIFY=0 dnslookup example.org tls://dns-server-address`
Author
Owner

@sergeevabc commented on GitHub (Jun 7, 2025):

Андрей, а почему переменные вместо привычных (например, по Curl) ключей?
В Windows эта конструкция выглядит прям сложно-сложно:

$ cmd /c "set "verify=0" && dnslookup cern.ch https://1.1.1.1/dns-query
<!-- gh-comment-id:2952101022 --> @sergeevabc commented on GitHub (Jun 7, 2025): Андрей, а почему переменные вместо привычных (например, по Curl) ключей? В Windows эта конструкция выглядит прям сложно-сложно: ``` console $ cmd /c "set "verify=0" && dnslookup cern.ch https://1.1.1.1/dns-query ```
Author
Owner

@ameshkov commented on GitHub (Jun 9, 2025):

@sergeevabc исторически сложилось, если у меня дойдут руки до переделки command-line API, то сделаю по-человечески вместо переменных среды.

<!-- gh-comment-id:2955199775 --> @ameshkov commented on GitHub (Jun 9, 2025): @sergeevabc исторически сложилось, если у меня дойдут руки до переделки command-line API, то сделаю по-человечески вместо переменных среды.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dnslookup#49
No description provided.