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

[Transfer issues from Uptime Kuma] axios-cached-dns-resolve does not work well in some local networks like Tailscale/Wireguard. #27

Closed
louislam opened this issue Jun 23, 2022 · 1 comment

Comments

@louislam
Copy link

louislam commented Jun 23, 2022

Description

Uptime Kuma was recently added axios-cached-dns-resolve and was released yesterday. Unfortunately, it seems that it is not working well in local environment like Tailscale/Wireguard. After changing back to the normal axios client without axios-cached-dns-resolve, it is back to normal.

The code changes: louislam/uptime-kuma#1598

Related issues

  1. It does not resolve local domain names correctly.
    HTTP checks on non-standard ports reporting as down louislam/uptime-kuma#1821

  2. It does not respect /etc/hosts
    Latest release seems to not respect /etc/hosts louislam/uptime-kuma#1822

👟 Reproduction steps

  1. Prepare a tailscale/wireguard network
  2. Make a request using axios-cached-dns-resolve and using a url with custom domain such as http://my-server:8096

👀 Expected behavior

It should be working like a normal axios.

😓 Actual Behavior

In my case, it is connection timeout. Someone got ECONNREFUSED error.

Version

axios-cached-dns-resolve: 3.1.0
Node.js 16

@louislam louislam changed the title [Transfer issues from Uptime Kuma] axios-cached-dns-resolve does not work well in some local environments like Tailscale/Wireguard. [Transfer issues from Uptime Kuma] axios-cached-dns-resolve does not work well in some local networks like Tailscale/Wireguard. Jun 23, 2022
@tcollinsworth
Copy link
Owner

Fixed issued with falling back from dns.resolve to dns.lookup. This should fix that issue.

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

2 participants