Closed InterN0te closed 11 months ago
Hello,
The value of {ZONE}
in the URL /domain/zone/{ZONE}/record
is obtained by SOA calls.
You have fr
instead of debauchez.fr
because the DNS calls to get the SOA doesn't return the expected answer.
The problem is probably related to your environment: firewall, local DNS, etc. It's not a problem with lego.
Thank you for your quick and insightful response.
After removing the DNS entry that was redirecting domain.fr to my NAS, the issue was resolved. Now, the command dig @$dns_server $domaine SOA +short is returning the expected answer with my private DNS.
I’m quite surprised that my NAS, which uses the same DNS and LEGO version, didn’t encounter this issue. However, I’m not going to delve deeper into this as the current configuration works perfectly for me.
I really appreciate your help!
Welcome
What did you expect to see?
I expected to see the certificates generated successfully without any errors. Specifically, I anticipated that the API call to OVH would correctly add a DNS record for the domain and not return a 404 error. The expected behavior is that the LEGO library interacts properly with the OVH API, using the correct API endpoint and successfully creating the necessary DNS records for certificate generation.
What did you see instead?
Instead of the successful generation of certificates, an error occurred indicating “OVHcloud API error (status code 404): “This service does not exist””. It appears that the API URL used to add a DNS record is incorrect, using “/domain/zone/fr/record” instead of “/domain/zone/domain.fr/record”. This resulted in a failure to create the necessary DNS records for certificate generation.
How do you use lego?
Library
Reproduction steps
Note: It appears that this issue occurs specifically with this domain name, while it seems to work correctly with most other domain names. This could suggest a specific issue with how this domain is configured or how the LEGO library interacts with it. It’s unclear why this domain would result in an incorrect API URL. The issue persists across different subdomains of domain.fr, with or without the wildcard. Further investigation into this specific behavior may be required to resolve the issue
Version of lego
Logs
Go environment (if applicable)
No response