PANE

Bun throws different errors when using DNS functions

11 posts in the last 90 days, all from GitHub.

“What version of Bun is running? 1.4.3+c6da4a4d3 ( bun revision . 1.4.3 is the latest release, 2026 10 10. Canary was not tested.) What platform is your computer? Linux 7.2.9 (WSL2, x86 64) What steps can reproduce the bug? Parse one URL, then read its properties in a loop. Save…”
GitHub
“What version of Bun is running? No response What platform is your computer? No response What steps can reproduce the bug? export BUN OPTIONS= dns result order=ipv4first export NODE OPTIONS= dns result order=ipv4first bun publish What is the expected behavior? use the IP4 address…”
GitHub
“What version of Bun is running? The npm latest dist tag points to 1.4.2 at the time of this report. Node.js v22.23.2 was used for comparison. What platform is your computer? What steps can reproduce the bug? Destroying a custom Duplex used as the transport for a server side…”
GitHub

Bun is producing different error codes and messages compared to Node.js when utilizing DNS functions like `dns.lookup`, `dns.reverse`, and encountering connection refused errors.

devtoolsnetworkingdnserrors
FIT
0%
SIGNAL
64%
SOURCES14
FRESHEST POST2D AGO
TRACKED SINCE68D AGO

SOURCES (14)

“What version of Bun is running? 1.4.3+c6da4a4d3 ( bun revision . 1.4.3 is the latest release, 2026 10 10. Canary was not tested.) What platform is your computer? Linux 7.2.9 (WSL2, x86 64) What steps can reproduce the bug? Parse one URL, then read its…”

GITHUB2d ago

“What version of Bun is running? No response What platform is your computer? No response What steps can reproduce the bug? export BUN OPTIONS= dns result order=ipv4first export NODE OPTIONS= dns result order=ipv4first bun publish What is the expected behavior? use the IP4 address for npmjs.com What do you see instead? It alternates between IP4 and IP6 and which means it will not remember an IP address for 5 minutes when asked (it will not remember two), so you have to enter a OTP code each time a”

GITHUB21d ago

“What version of Bun is running? The npm latest dist tag points to 1.4.2 at the time of this report. Node.js v22.23.2 was used for comparison. What platform is your computer? What steps can reproduce the bug? Destroying a custom Duplex used as the transport for a server side tls.TLSSocket closes and destroys the wrapping TLS socket in Node.js. In Bun 1.4.2, the TLS socket remains undestroyed and does not emit close during the reproduction. Save this as lifecycle.cjs : Run the exact same file with”

GITHUBSep 7

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 6.8.0 136 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? Node.js prints: What do you see instead? Bun throws: Additional information No response”

GITHUBAug 18

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 6.8.0 136 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? Node.js throws: What do you see instead? Bun prints: Additional information No response”

GITHUBAug 18

“What version of Bun is running? Linux 6.8.0 136 generic x86 64 x86 64 What platform is your computer? Linux 6.8.0 136 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? Node.js prints: What do you see instead? Bun prints: Additional information No response”

GITHUBAug 18

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 6.8.0 136 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? Node.js throws: What do you see instead? Bun does not print or throw anything. Additional information No response”

GITHUBAug 18

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 6.8.0 136 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? Node.js prints: What do you see instead? Bun print and then throws: Additional information No response”

GITHUBAug 10

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 6.8.0 136 generic x86 64 x86 64 What steps can reproduce the bug? What is the expected behavior? Node.js does not print anything. What do you see instead? Bun throws: Additional information No response”

GITHUBAug 10

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux bombe mint 6.8.0 136 generic 136 Ubuntu SMP PREEMPT DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86 64 x86 64 x86 64 GNU/Linux What steps can reproduce the bug? What is the expected behavior? Node.js throws: What do you see instead? Bun throws: Additional information No response”

GITHUBAug 10

“What version of Bun is running? 1.4.0 canary.1+f68e504ae (also reproduced on 1.3.14 ) What platform is your computer? Linux x64 What steps can reproduce the bug? What is the expected behavior? What do you see instead? Additional information Bun resolves utils.d.mts as a runtime module (not just a type declaration). The file's last line is: TypeScript valid but JavaScript invalid syntax for mixed type/value re exports. Bun's ESM parser rejects it with SyntaxError . This breaks any package that sh”

GITHUBAug 2

“What version of Bun is running? 1.3.11 canary.1+9e93bfa1b What platform is your computer? Linux 5.10.0 12 amd64 x86 64 x86 64 What steps can reproduce the bug? Hi, I would like to report a behavior in Bun that can be reproduced using the below snippet: What is the expected behavior? What do you see instead? dns.lookup("mongo 1") resolves to 127.0.0.1 in Node and Deno, but returns ::1 in Bun. This causes behavior differences in code Additional information No response”

GITHUBApr 12

“What version of Bun is running? 1.3.5 What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? 1. create file index.ts with content: Bun.serve({ hostname: "something.localhost", fetch: () = new Response("Hello") }); 2. run bun index.ts What is the expected behavior? server is started with custom localhost subdomain What do you see instead? Additional information No response”

GITHUBDec 2025

“What version of Bun is running? 1.2.13 What platform is your computer? Darwin 24.5.0 x86 64 i386 What steps can reproduce the bug? Pre reqs: install node + npm install bun package.json: test/test.js: cli commands: What is the expected behavior? Both bun and node pass test What do you see instead? bun fails test: 1. process.argv0 and process.argv[0] are swapped vs node. 2. the subcommand test is not included in args at all in bun, which disagrees with both node and ps. Additional information No r”

GITHUBMay 2025

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.