Giter Site home page Giter Site logo

Comments (11)

qdm12 avatar qdm12 commented on July 23, 2024

The Docker healthcheck basically runs a DNS lookup of the hostname, on this line.

Is it a new hostname with a new IP address? If so, it might work in a few minutes so that it has time to be published on your DNS server (ISP or i.e. Google/Cloudflare etc.).

Otherwise, can you try

docker run -it --rm alpine:3.10 nslookup <your-domain>

and report back the (redact your IP address etc.) output?

from ddns-updater.

v0idp avatar v0idp commented on July 23, 2024

nslookup: can't resolve '(null)': Name does not resolve nslookup: can't resolve 'domain.me': Name does not resolve

I mean my domain isn't redirecting anything. It's not supposed to do so. I only use the wildcards subdomain for my services in docker with traefik.

from ddns-updater.

qdm12 avatar qdm12 commented on July 23, 2024

Can you try with https://mxtoolbox.com/DNSLookup just to be sure it's not a LAN DNS server issue?

You can try by setting to i.e. 127.0.0.1 (localhost) on the Cloudflare website, then restart the ddns-updater container (or wait 5 minutes) and see if the IP address is changed on their website. If it is, then it may be a Cloudflare issue (I had the case with Namecheap not publishing my updated record for 6 hours).

from ddns-updater.

v0idp avatar v0idp commented on July 23, 2024

image

Like I said I have no dns record for the domain itself. Only for the * subdomain wildcard. but the healthcheck checks for the domain. Not sure if I'm correct here.

Also the healthcheck with the IP (it's showing an LAN ip anyways)
{"node_id": 0, "error": "lookup domain.me on 192.168.178.1:53: no such host"}

from ddns-updater.

qdm12 avatar qdm12 commented on July 23, 2024

Hm maybe you need to have an A record for host @ as well as host * (wildcard). I had to this on Namecheap to have a wildcard record. I personally don't use Cloudflare so I am not sure, and I tend to not use wildcards either, so I might not be the best person to ask 😆

But if you add a record for this same domain with the host @ the healthcheck will not complain anymore I guess. Or you can use subdomains instead of wildcard (what I do, it's better security wise as well).

from ddns-updater.

v0idp avatar v0idp commented on July 23, 2024

How does it improve the security ?

from ddns-updater.

qdm12 avatar qdm12 commented on July 23, 2024

Actually I think if you use Traefik you need a wildcard record not to go crazy! I have seen bots trying to access strange subdomains in my logs so I prefer to keep it restricted to what I need. On the other hand, having a wildcard record may make it harder for bots to know what subdomains you actually use which is nice.

Anyway, from the Namecheap website

NOTE: A wildcard DNS record does not cover a root domain (e.g. yourdomain.tld), thus you will need to create a record for @ host additionally.

However my code might be wrong, would you mind trying resolving a.yourdomain.com? That should work with the wildcard.

docker run -it --rm alpine:3.10 nslookup a.<your-domain>

from ddns-updater.

v0idp avatar v0idp commented on July 23, 2024

it resolved something. seems to work with subdomain just fine. I am using Namecheap but my DNS is cloudflare.

healthcheck seems to make no sense if I don't use my root domain.

from ddns-updater.

qdm12 avatar qdm12 commented on July 23, 2024

I just changed my code, you are right. It now tries to resolve any.domain.tld instead of domain.tld if you use a wildcard record. So the Failure message (in the UI, logs, healthcheck.. and Gotify) should not show anymore. Thanks again for pointing this out.

from ddns-updater.

v0idp avatar v0idp commented on July 23, 2024

thank you !

from ddns-updater.

qdm12 avatar qdm12 commented on July 23, 2024

It's still building the Docker image on Travis. It will probably take another 20-30 minutes (compiling for all CPU architectures is slow...). You can then try restarting the container with the latest image you can pull with

docker pull qmcgaw/ddns-updater

from ddns-updater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.