We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running the following code I'm having an issue where the responses don't match the dig command.
dig
(async () => { const DNS = require('dns2'); const dns = new DNS({"nameServers": ["1.1.1.1"], "retries": 1}); console.log(await dns.resolve("vod-ap1-aoc.tv.apple.com", 1, 1)); })();
charliefish@Charlies-MacBook-Pro tmp % node index.js Packet { header: { id: 7626, qr: 1, opcode: 0, aa: 0, tc: 0, rd: 1, ra: 1, z: 0, rcode: 0, qdcount: 1, nscount: 1, arcount: 0, ancount: 1 }, questions: [ { name: 'vod-ap1-aoc.tv.apple.com', type: 0, class: 1 } ], answers: [ { name: 'vod-ap1-aoc.tv.apple.com', ttl: 3571, type: 5, class: 1, domain: 'vod-ap1-aoc-aec.tv.g.apple.com' } ], authorities: [ { name: 'vod-ap1-aoc-aec.tv.g.apple.com', ttl: 271, type: 6, class: 1, primary: 'v1.gslb.aaplimg.com', admin: 'hostmaster.apple.com', serial: 1622748988, refresh: 1800, retry: 300, expiration: 60480, minimum: 300 } ], additionals: [] } charliefish@Charlies-MacBook-Pro tmp % dig @1.1.1.1 vod-ap1-aoc.tv.apple.com ; <<>> DiG 9.10.6 <<>> @1.1.1.1 vod-ap1-aoc.tv.apple.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63692 ;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;vod-ap1-aoc.tv.apple.com. IN A ;; ANSWER SECTION: vod-ap1-aoc.tv.apple.com. 3589 IN CNAME vod-ap1-aoc-aec.tv.g.apple.com. vod-ap1-aoc-aec.tv.g.apple.com. 229 IN CNAME vod-ap-aoc.tv.apple.com. vod-ap-aoc.tv.apple.com. 86389 IN CNAME vod-ap-aoc.tv.apple.com.akadns.net. vod-ap-aoc.tv.apple.com.akadns.net. 49 IN CNAME hls-svod-aoc-ve.itunes.g.aaplimg.com. hls-svod-aoc-ve.itunes.g.aaplimg.com. 4 IN CNAME hls-svod-aoc-us-lb.itunes-apple.com.akadns.net. hls-svod-aoc-us-lb.itunes-apple.com.akadns.net. 19 IN CNAME hls-svod-aoc.itunes.apple.com.edgesuite.net. hls-svod-aoc.itunes.apple.com.edgesuite.net. 21589 IN CNAME a1936.dscw11.akamai.net. a1936.dscw11.akamai.net. 9 IN A 23.62.236.113 a1936.dscw11.akamai.net. 9 IN A 23.62.236.19 a1936.dscw11.akamai.net. 9 IN A 23.62.236.97 a1936.dscw11.akamai.net. 9 IN A 23.62.236.67 a1936.dscw11.akamai.net. 9 IN A 23.62.236.121 a1936.dscw11.akamai.net. 9 IN A 23.62.236.11 a1936.dscw11.akamai.net. 9 IN A 23.62.236.123 a1936.dscw11.akamai.net. 9 IN A 23.62.236.8 a1936.dscw11.akamai.net. 9 IN A 23.62.236.10 ;; Query time: 18 msec ;; SERVER: 1.1.1.1#53(1.1.1.1) ;; WHEN: Sat Jun 12 22:12:09 MDT 2021 ;; MSG SIZE rcvd: 699 charliefish@Charlies-MacBook-Pro tmp %
As you can see the dig command gives 16 answers, however the dns2 code does not.
Any ideas what could be causing this?
The text was updated successfully, but these errors were encountered:
Looks like this seems to be working fine for the DoH client. Just not the default one.
Sorry, something went wrong.
No branches or pull requests
When running the following code I'm having an issue where the responses don't match the
dig
command.As you can see the
dig
command gives 16 answers, however the dns2 code does not.Any ideas what could be causing this?
The text was updated successfully, but these errors were encountered: