Issues with Traefik DNS Resolvers on Docker Swarm

0
0
Asked By CuriousCoder42 On

I'm having some trouble getting Traefik to work properly with Cloudflare as my DNS challenge provider within a Docker Swarm setup. My network only allows traffic to 1.1.1.1 and 8.8.8.8 as DNS resolvers. I've set up the DNS resolvers in my Traefik configuration like this: --certificatesresolvers.cloudflare.acme.dnsChallenge.resolvers=1.1.1.1:53,8.8.8.8:53. Despite doing this, I'm getting an error message that says: 'propagation: time limit exceeded: last error: authoritative nameservers: DNS call error: read udp 172.18.0.3:43120->172.64.33.184:53: i/o timeout.' It seems like it's still trying to reach out to 172.64.33.184 instead of sticking to my specified resolvers. Am I missing something, or do I not fully understand how the resolvers setting works?

1 Answer

Answered By DevDude99 On

I ran into a similar issue recently, and I think I have an idea of what's happening. Since your network has restrictions, it’s crucial to note that while you've set the DNS resolvers, it looks like Traefik is still attempting to contact the SOA for your domain directly. You might want to try disabling the SOA check and enabling recursive query settings in your configuration. This could help ensure that Traefik uses the specified DNS resolvers rather than going directly to the authoritative nameservers.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.