Skip to content
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

DNS problem: NXDOMAIN looking up TXT for _acme-challenge. #5

Closed
JOduMonT opened this issue Sep 18, 2018 · 11 comments
Closed

DNS problem: NXDOMAIN looking up TXT for _acme-challenge. #5

JOduMonT opened this issue Sep 18, 2018 · 11 comments
Assignees
Labels
bug Something isn't working solved! Solved and will be closed on next release

Comments

@JOduMonT
Copy link

Hi;

I miss understood something;

do I have to create the TXT _acme-challenge. ?
if yes where I found the VALUE
may I have a concrete example ?

Regards!

Jonathan

@sineverba
Copy link
Owner

sineverba commented Sep 18, 2018

No, you don't need to create anything. The DNS will be created from bash script... What's the problem? Can you write down all steps and errors received, if any?
Thank you

@JOduMonT
Copy link
Author

thank for your quick reply :)

for the little history I move my DNS from namecheap to cloudflare because I had the same issue ;)

so I clone dehydrated and your hook as you suggest
here my ./config

IP_VERSION="4"
CHALLENGETYPE="dns-01"
HOOK="hooks/cfhookbash/hook.sh"
KEY_ALGO="secp384r1"
CONTACT_EMAIL="hostmaster@jodumont.com"

hooks/cfhookbash/config.sh

case ${1} in
        "jodumont.com")
                global_api_key="MY GLOBAL API KEY"
                zones=" MY ZONE I FOUND IN UNDER DNS/API POST as you mention"
                email="EMAIL USE FOR MY CLOUDFLARE ACCOUNT"
        ;;
esac

than I run

bash-4.4$ ./dehydrated -c

# INFO: Using main config file /srv/dehydrated/config
Processing jodumont.com
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting new certificate order from CA...
 + Received 1 authorizations URLs from the CA
 + Handling authorization for jodumont.com
 + 1 pending challenge(s)
 + Deploying challenge tokens...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   649    0   501  100   148    914    270 --:--:-- --:--:-- --:--:--  1182
 + Responding to challenge for jodumont.com authorization...
 + Cleaning challenge tokens...
{"result":{"id":"a4c137a530f709584b1eb7e0564a6046"},"success":true,"errors":[],"messages":[]} + Challenge validation has failed :(
ERROR: Challenge is invalid! (returned: invalid) (result: {
  "type": "dns-01",
  "status": "invalid",
  "error": {
    "type": "urn:ietf:params:acme:error:dns",
    "detail": "DNS problem: NXDOMAIN looking up TXT for _acme-challenge.jodumont.com",
    "status": 400
  },
  "url": "https://acme-v02.api.letsencrypt.org/acme/challenge/0q2rk8xuabrf6ICLUxcnYP-XGqEEOcHXqyiYa4cXwpc/7455893731",
  "token": "vOKDeFZ8AZN-yK076rM-kijvbSH0sX4BNVu_Wwe-4-s"
})

@JOduMonT
Copy link
Author

Do I still need the WELLKNOWN directory ?
ref: dehydrated-io/dehydrated#90

@LunkSnee
Copy link

LunkSnee commented Feb 3, 2019

I'm getting the same thing. It appears it isn't creating the TXT record as expected within Cloudflare. I'm having to use the python script hook instead, as it works without issue.

@JOduMonT
Copy link
Author

JOduMonT commented Feb 6, 2019

@LunkSnee I leg you this issue
for me I use another way and fine to close it

@phixion
Copy link

phixion commented Feb 22, 2019

same issue

@sineverba
Copy link
Owner

I cannot replicate the issues.
Can you check if DNS record Is created on cloudflare?

A raw test Is firing continuously F5 (refresh) during development on CF page with DNS list...

@phixion
Copy link

phixion commented Feb 24, 2019

nothing is created within cf

@YasharF
Copy link
Contributor

YasharF commented May 18, 2019

Interestingly I am running into this acme-staging.api.letsencrypt.org, but not when using acme-v02.api.letsencrypt.org for the CA endpoint

@sineverba
Copy link
Owner

I can replicate this. Probably need to wait a bit before test for record created. I will investigate deeper.

@sineverba sineverba added the bug Something isn't working label May 21, 2019
@sineverba sineverba self-assigned this May 21, 2019
@sineverba
Copy link
Owner

Ready a patch for this issue.

@sineverba sineverba added the solved! Solved and will be closed on next release label May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved! Solved and will be closed on next release
Projects
None yet
Development

No branches or pull requests

5 participants