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

Latest release seems to not respect /etc/hosts #1822

Closed
2 tasks done
wneessen opened this issue Jun 23, 2022 · 2 comments · Fixed by #1823
Closed
2 tasks done

Latest release seems to not respect /etc/hosts #1822

wneessen opened this issue Jun 23, 2022 · 2 comments · Fixed by #1823
Labels
bug Something isn't working

Comments

@wneessen
Copy link

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

I just installed the latest 1.17.0 release and a couple of monitors started to turn red after the update and stayed like this since. After a bit of investigation it turns out these are all monitors which have a specific hostname rewrite in the /etc/hosts file.

Background: the server serving these services runs behind the same firewall as the server running Uptime-Kuma. To avoid having to use NAT reflection, the Uptime-Kuma server has /etc/hosts entries that point the public DNS entries to the internal address of the server running the services. This way the traffic does not have to pass the firewall, go to the public internet and then go back into the same firewall, while keeping the original DNS entries intact.

With the latest update it seems these /etc/hosts entries seems to be not respected anymore.

👟 Reproduction steps

  • Set up a monitor pointing to service.domain.tld
  • Set up /etc/hosts entry for service.domain.tld to point to an internal address like 10.0.0.1
  • See the uptime kuma monitor fail as it's trying to resolve the DNS only not respecting the /etc/hosts

👀 Expected behavior

The /etc/hosts entries should be respected

😓 Actual Behavior

The /etc/hosts entries are not respected

🐻 Uptime-Kuma Version

1.17.0

💻 Operating System and Arch

Arch Linux 5.15.41-1-lts

🌐 Browser

Any

🐋 Docker Version

🟩 NodeJS Version

18.2.0

📝 Relevant log output

No response

@wneessen wneessen added the bug Something isn't working label Jun 23, 2022
@louislam louislam linked a pull request Jun 23, 2022 that will close this issue
@louislam
Copy link
Owner

Please update to 1.17.1. It should be fixed.

@wneessen
Copy link
Author

Confirmed. With 1.17.1 everything works as expected again. Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants