[GH-ISSUE #69] Trailing / results in a failure #50

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

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

Failure case:

❯ VERIFY=0 dnslookup s25.wcsng https://localhost:1053/dns-query/
dnslookup master
TLS verification has been disabled
2024/05/20 16:52:43 [fatal] Cannot make the DNS request: expected status 200, got 404 from https://localhost:1053/dns-query/

Working case:

❯ VERIFY=0 dnslookup s25.wcsng https://localhost:1053/dns-query
dnslookup master
TLS verification has been disabled
Server: https://localhost:1053/dns-query

dnslookup result (elapsed 50.270688ms):
;; opcode: QUERY, status: NOERROR, id: 23354
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;s25.wcsng. IN A

;; ANSWER SECTION:
s25.wcsng. 3600 IN A 67.58.54.134

;; AUTHORITY SECTION:
wcsng. 3600 IN NS ns1.wcsng.

I am have coredns running at localhost:1053

I am using the latest version of the dnslookup tool

❯ dnslookup -v
dnslookup master

Originally created by @sreevatsank1999 on GitHub (May 20, 2024). Original GitHub issue: https://github.com/ameshkov/dnslookup/issues/69 Failure case: >❯ VERIFY=0 dnslookup s25.wcsng https://localhost:1053/dns-query/ dnslookup master TLS verification has been disabled 2024/05/20 16:52:43 [fatal] Cannot make the DNS request: expected status 200, got 404 from https://localhost:1053/dns-query/ Working case: >❯ VERIFY=0 dnslookup s25.wcsng https://localhost:1053/dns-query dnslookup master TLS verification has been disabled Server: https://localhost:1053/dns-query > >dnslookup result (elapsed 50.270688ms): ;; opcode: QUERY, status: NOERROR, id: 23354 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 > >;; QUESTION SECTION: ;s25.wcsng. IN A > >;; ANSWER SECTION: s25.wcsng. 3600 IN A 67.58.54.134 > >;; AUTHORITY SECTION: wcsng. 3600 IN NS ns1.wcsng. I am have coredns running at `localhost:1053` I am using the latest version of the `dnslookup` tool >❯ dnslookup -v dnslookup master
kerem closed this issue 2026-03-14 01:10:15 +03:00
Author
Owner

@sreevatsank1999 commented on GitHub (May 21, 2024):

I am actually using v1.10.1 not master (commit 719e730c2d)

dnslookup [-v|--version] says master, not sure if this was intended.

<!-- gh-comment-id:2121465655 --> @sreevatsank1999 commented on GitHub (May 21, 2024): I am actually using `v1.10.1` not `master` (commit 719e730c2d354a0907eaea476a2eacd754dfc9c4) `dnslookup [-v|--version]` says `master`, not sure if this was intended.
Author
Owner

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

@sreevatsank1999 this has nothing to do with dnslookup itself, it's just how the DNS server handles DoH requests with/without trailing /.

<!-- gh-comment-id:2121977365 --> @ameshkov commented on GitHub (May 21, 2024): @sreevatsank1999 this has nothing to do with `dnslookup` itself, it's just how the DNS server handles DoH requests with/without trailing `/`.
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#50
No description provided.