-
-
Notifications
You must be signed in to change notification settings - Fork 442
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
Incorrect IP
when using dns-resolver
#904
Comments
Hmm.. This is because the IP from the gatus/config/endpoint/endpoint.go Lines 267 to 269 in 0113175
gatus/config/endpoint/endpoint.go Lines 309 to 316 in 0113175
From a UX perspective, I completely understand why you'd expect It shouldn't be too difficult to implement, given that the code for the resolver already exists, and that under the hood, Lines 240 to 260 in 0113175
We'd have to extract the piece of code that creates the resolver, and then we can reuse it to create a dialer that would work for both the HTTP client and the function used for resolving the IP. |
Describe the bug
Gatus doesn't show the correct
IP
inconditions
whendns-resolver
overshadows existing domain name, although healthcheck is performed on the correct one.What do you see?
Gatus returns incorrect
IP
:What do you expect to see?
Gatus should return the correct
IP
when usingdns-resolver
:List the steps that must be taken to reproduce this issue
Create a dns server that overshadows domain
google.com
with custom IPs (for example, usingCoreDNS
):Corefile
drill -p 54 A google.com
drill -p 54 AAAA google.com
Create the following healthcheck:
Observe that healthcheck fails with the incorrect
IP
:142.250.200.110
here is the actual Google IP, resolved from global system DNS.Observe that Gatus process connects correctly to
127.0.0.1
(5848
is a main gatusPID
) :strace -f -e trace=network -s 10000 -p 5848 2>&1 | grep 'connect' | grep '443'
Version
v5.13.1
Additional information
No response
The text was updated successfully, but these errors were encountered: