mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Status from local side via local DNS & CNAME at TCP port #2890
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#2890
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @XHyperDEVX on GitHub (Dec 7, 2023).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
📝 Describe your problem
I have two questions:
I have a local DNS server that forwards "home.local" to a local ip. i want to monitor the access from "home.local". Unfortunately, uptime-kuma can't connect to this local url because it uses external DNS servers, in my case Cloudflare [1.1.1.1].
How can I tell it to query the url at the local DNS server ONLY FOR THIS ONE CONNECTION?
And my second question:
Can I somehow specify a CNAME in the TCP port option? I would like to monitor the HTTP access from outside, i.e. whether one comes into my network from outside via port 80. As I unfortunately do not have a static IP, I have set up a DynDNS service. Unfortunately, I can only enter IPs for the TCP port, not a CNAME. Is there any way to do this?
📝 Error Message(s) or Log
🐻 Uptime-Kuma Version
1.23.7
💻 Operating System and Arch
Debian 12 [..as host system, i use the Uptime-Kuma Docker Image]
🌐 Browser
Edge
🐋 Docker Version
20.10.24
🟩 NodeJS Version
i dont know
@CommanderStorm commented on GitHub (Dec 7, 2023):
Setting the dns server or response per monitor is currently not configurable.
I am not aware of such a feature request existing (there are different fields => filling out this form is benefitial) ^^
You may be able to get around this with the tools currently at your disposal:
Hostheader as described in https://github.com/louislam/uptime-kuma/issues/2991@XHyperDEVX commented on GitHub (Dec 7, 2023):
@CommanderStorm
Thank you, that works! I don't know exactly why, but it works! xD
Now I only have the CNAME problem. Do you have a solution for that too?
@CommanderStorm commented on GitHub (Dec 7, 2023):
github.com/louislam/uptime-kuma@ad4629cb03/server/model/monitor.js (L616)Calls
github.com/louislam/uptime-kuma@ad4629cb03/server/util-server.js (L103-L107)and https://www.npmjs.com/package/tcp-ping does not have this functionality.
Please add this feature request here: https://github.com/apaszke/tcp-ping/issues
@CommanderStorm commented on GitHub (Dec 7, 2023):
Note that if you need dns resolution, you are likely monitoring a website => the https monitor is be better suited for this.
@XHyperDEVX commented on GitHub (Dec 7, 2023):
Thanks
@CommanderStorm commented on GitHub (Dec 7, 2023):
Another note: per monitor dns is tracked in #1302 and the discussion for implementing this is in #2055