Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: DOHClient not working NS cdnjs.com @ada.openbld.net #89

Open
SukkaW opened this issue Nov 5, 2024 · 0 comments
Open

[BUG]: DOHClient not working NS cdnjs.com @ada.openbld.net #89

SukkaW opened this issue Nov 5, 2024 · 0 comments
Labels

Comments

@SukkaW
Copy link

SukkaW commented Nov 5, 2024

Description of the bug

DOHClient failed to resolve the NS records of cdnjs.com from https://ada.openbld.net/dns-query, but dig can:

$ dig cdnjs.com @ada.openbld.net +https NS

; <<>> DiG 9.20.3 <<>> cdnjs.com @ada.openbld.net +https NS
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59178
;; flags: qr rd; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;cdnjs.com.			IN	NS

;; ANSWER SECTION:
cdnjs.com.		172425	IN	NS	ben.ns.cloudflare.com.
cdnjs.com.		172425	IN	NS	lara.ns.cloudflare.com.
cdnjs.com.		172425	IN	RRSIG	NS 13 2 86400 20241106154049 20241104134049 34505 cdnjs.com. osOAMYt8B4Nf+IHahcVlKMn8mywsuzFJ/Hn+xQX8jeqzhZqFtOdZUNVv uX6uHaq7IzFV1EHT5UhD0GUpKfsevA==

;; Query time: 57 msec
;; SERVER: 95.85.94.116#443(ada.openbld.net) (HTTPS)
;; WHEN: Tue Nov 05 22:47:03 CST 2024
;; MSG SIZE  rcvd: 230

Steps To Reproduce

import DNS2 from 'dns2';

DNS2.DOHClient({
  http: false,
  dns: 'ada.openbld.net'
})('cdnjs.com', 'NS').then(console.log);

Can't find any answers:

Packet {
  header: {
    id: 15464,
    qr: 0,
    opcode: 14,
    aa: 1,
    tc: 0,
    rd: 0,
    ra: 0,
    z: 6,
    rcode: 13,
    qdcount: 27710,
    nscount: 28516,
    arcount: 31038,
    ancount: 15458
  },
  questions: [],
  answers: [],
  authorities: [],
  additionals: []
}

Additional Information

No response

@SukkaW SukkaW added the bug label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant