mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Feature request: Disable "lookup IP addresses do not match" healthcheck? #222
Reference in New Issue
Block a user
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 @raman325 on GitHub (Oct 16, 2022).
Originally assigned to: @qdm12 on GitHub.
What's the feature?
Not sure if this is a feature request or if I am just missing something, but is there a way to disable this healthcheck? I am using the updater to set an external IP for my home server. To keep internal calls from going out to Cloudflare, my internal DNS server responds with the internal IP for the home server so when the container tries to validate the IP, the validation fails.
When I first set this up I did not have the option to use hairpinning which is why I set it up this way. I have to look into whether I can leverage it or not, but in the interim, just looking for a way to avoid these failed healthchecks. Thanks in advance!
@nealey commented on GitHub (Nov 22, 2022):
I found this bug researching the same problem, with the same home DNS setup. Because I'm running under Docker, I was able to tell the container to use a CloudFlare DNS server (1.1.1.1), which fixed the failing healthcheck.
@raman325 commented on GitHub (Nov 22, 2022):
thanks for the tip, didn't realize how simple it was to override DNS for a container.
For anyone using
docker runwho runs into this issue, just add a--dns <dns_server>for each of the DNS servers you want the container to use@qdm12 commented on GitHub (Dec 7, 2022):
Added
RESOLVER_ADDRESSandRESOLVER_TIMEOUTenvironment variables in 3250678c27a591b21bb18fb687481939a01350c1It defaults to the default DNS resolver, and the resolver is used by both the healthcheck and the main run loop checking for IP address differences.
You can use for example
RESOLVER_ADDRESS=1.1.1.1:53,RESOLVER_TIMEOUTdefaults to 5 seconds.