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: DNS Resolving Issue in Deno 2.1.5+ on Windows 11 #27900

Open
ghostzero opened this issue Jan 31, 2025 · 0 comments
Open

Bug: DNS Resolving Issue in Deno 2.1.5+ on Windows 11 #27900

ghostzero opened this issue Jan 31, 2025 · 0 comments

Comments

@ghostzero
Copy link

ghostzero commented Jan 31, 2025

Version:
Bug begins at Deno 2.1.5

OS:

  • Windows 11 23H2 (OS Build 22631.4751) – Issue occurs
  • Ubuntu 24.04 LTSNo issue observed

Description:
After upgrading to the latest version of Deno (v2.1.9), the CLI prints the following error message when running commands that uses DNS like axios:

could not parse an IP from hosts file

Despite this message, DNS resolution appears to work correctly, but there is a noticeable degradation in performance. The issue does not occur on Linux (Ubuntu 24.04 LTS), where performance remains normal and no such error message is printed.

Somethimes this message is also posted multiple times.

Potential Cause:
This issue might be related to recent DNS resolving changes introduced in #27572, based on the changelog on GitHub.

Actual Behavior:

  • The CLI prints could not parse an IP from hosts file on Windows 11.
  • Performance is degraded on Windows but remains normal on Linux.
  • Command executes successfully, while execution time increase to +20 seconds.

Expected Behavior:

  • No unexpected error messages should appear for DNS issues.
  • CLI performance should not degrade after updating to 2.1.5.
  • Command executes successfully.

Steps to Reproduce:

  1. Install or update to Deno 2.1.5 on Windows 11 23H2.
  2. Run any Deno CLI command that requires dns resolution (e.g., fetching something with axios).
  3. Observe the error message:
    could not parse an IP from hosts file
    
  4. Compare the same command execution on Ubuntu 24.04 LTS (no error message and no performance degradation).
@ghostzero ghostzero changed the title Bug Report: DNS Resolving Issue in Deno 2.1.5+ on Windows 11 Bug: DNS Resolving Issue in Deno 2.1.5+ on Windows 11 Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant