-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
split problem dns_freedns.sh #1086
Comments
guy, just read this one http://freedns.afraid.org/dynamic/ and ready copy curl script with your AUTH token to your router. |
Yep I'm having a similar problem with a .co.uk domain I'm gonna try changing the 1 to 2 now and see how that works |
Fixes acmesh-official#1086 Supercedes acmesh-official#1454 Signed-off-by: Joe Groocock <me@frebib.net>
Fixes acmesh-official#1086 Supercedes acmesh-official#1454 Signed-off-by: Joe Groocock <me@frebib.net>
How did you solve this? |
I manage to change the 1 for the 2 and int worked, thanks. |
@rbijos can you please test the freedns api script here... https://raw.githubusercontent.com/dkerr64/acme.sh/FreeDNS/dnsapi/dns_freedns.sh |
PR #2285 opened. |
It worked after the first time I tried, on a total of 6 tries on 3 different domains (I think the error was on the server not the script). I tried both domain.tld.cc and domain.tld. First try error log. (only the error part, domain name changed to test). TXT records have been created correctly at freedns. |
@rbijos I don't think your problem is related to the FreeDNS script. Did you only allow 2 seconds for the TXT record to propagate? That is very short time and the error msg suggests that it did not propagate. Can you confirm the the TXT record was also deleted after the failure to validate? |
Yes, was deleted. The "two seconds" in this case, I think, is to check the challenge response. I didn't changed any sleep time configuration. On my script it wait for 20 seconds and check every 10 seconds. |
So, given the TXT record is deleted then the dns_freedns.sh script is working as intended. You must allow enough time for the DNS updates to propagate so that when letsencrypt queries it for validation the update is propagated. |
Hello!
The split part of the script caused me trouble.
In this part
(hashtag) split our full domain name into two parts...
i="$(echo "$fulldomain" | tr '.' ' ' | wc -w)"
i="$(_math "$i" - 1)"
top_domain="$(echo "$fulldomain" | cut -d. -f "$i"-100)"
i="$(_math "$i" - 1)"
sub_domain="$(echo "$fulldomain" | cut -d. -f -"$i")"
it was not trimming my domain right.
I have a subdomain.domain.tld.cc (cc=country code)
It was trimming as subdomain.domain tld.cc
A workaround in my case was to put 2 for the first 1.
it worked as should subdomain domain.tld.cc
It should be another way to trim or to put a var to specify the domain or a documentation.
Thanks
The text was updated successfully, but these errors were encountered: