DNS problem error returns during creating a cert

Hello,

Letsencrypt is refusing to create a certificate for the domain my.hyundaicard.com.

The error returned is a DNS problem:

{
  "detail": "DNS problem: query timed out looking up A for my.hyundaicard.com; DNS problem: query timed out looking up AAAA for my.hyundaicard.com",
  "status": 400,
  "type": "urn:ietf:params:acme:error:dns"
}

I am struggling to debug this because any combination of Dig, Nslookup, etc. show that the A record exists, and the CNAME is properly set up to point to custom.bnc.lt. The same process has properly setup letsencrypt certificates for other domains so I believe it is a problem with the domain setup, and not our letsencrypt infrastructure.

The only smoking gun that we have been able to find is that when using DNS Propagation Checker sometimes the domain does not resolve for all geos. However, it is not consistent, in that some other people have been able to get it to show all greens.

Does anybody have any ideas on how to further debug? Please let me know if you need any other information to help with this issue.

Thanks,

1 Like

Hi @hpark, and welcome to the LE community forum :slight_smile:

I'm not sure where the problem is...
But I thought I would point this out:
my.hyundaicard.com canonical name = custom.bnc.lt

4 Likes

https://dnsviz.net/d/my.hyundaicard.com/dnssec/

The DNS delegation is wrong, the .com servers think that the NS records are a different set of names than the 61.40.236.100/210.182.190.100 servers do.

6 Likes

Hi Petercooperjr,

thank you for sharing the insight here!
To confirm, could you please share which exact part needs to be fixed? Or perhaps needs to be configured?

To give you further information, the domain should redirect into custom.bnc.lt for the Branch system to redirect the custom domain (my.hyundaicard.com) to the Branch domain (.app.link).

Ref documentation: Advanced Settings & Change Your Link Domain

Sincerely,
Kun

1 Like

Also, one more thing that I found.

we.kurly.com - this is a domain that is working as expected, but it is showing the same graph as the Hyundai card. - Could you please share with me which part is causing an issue?

Kurley: we.kurly.com | DNSViz
Hyundai card: my.hyundaicard.com | DNSViz

The "Servers" tab in DNSViz may be more helpful than the "DNSSEC" tab for delegation problems, the areas highlighted in yellow are inconsistent and will cause problems for anyone trying to get to your domain.

I'll try to walk through it with dig.

If you ask the .com nameservers for what the nameservers are for hyundaicard.com, it says they are hns1.hyundaicard.com. (61.40.236.100) and hns2.hyundaicard.com. (210.182.190.100)

$ dig +norecurse NS hyundaicard.com @a.gtld-servers.net.

; <<>> DiG 9.18.28 <<>> +norecurse NS hyundaicard.com @a.gtld-servers.net.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10141
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;hyundaicard.com.               IN      NS

;; AUTHORITY SECTION:
hyundaicard.com.        172800  IN      NS      hns1.hyundaicard.com.
hyundaicard.com.        172800  IN      NS      hns2.hyundaicard.com.

;; ADDITIONAL SECTION:
hns1.hyundaicard.com.   172800  IN      A       61.40.236.100
hns2.hyundaicard.com.   172800  IN      A       210.182.190.100

;; Query time: 9 msec
;; SERVER: 2001:503:a83e::2:30#53(a.gtld-servers.net.) (UDP)
;; WHEN: Mon Aug 12 10:56:30 UTC 2024
;; MSG SIZE  rcvd: 114

But then actually querying either of them gives a different set of names, with additional nameservers ending in .co.kr.

$ dig +norecurse NS hyundaicard.com @61.40.236.100

; <<>> DiG 9.18.28 <<>> +norecurse NS hyundaicard.com @61.40.236.100
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48113
;; flags: qr aa; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 5

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 4e8f44dc5fabfb7202461e1466b9eab550f202009517e0f5 (good)
;; QUESTION SECTION:
;hyundaicard.com.               IN      NS

;; ANSWER SECTION:
hyundaicard.com.        3600    IN      NS      hns2.hyundaicard.co.kr.
hyundaicard.com.        3600    IN      NS      hns1.hyundaicard.co.kr.
hyundaicard.com.        3600    IN      NS      hns2.hyundaicard.com.
hyundaicard.com.        3600    IN      NS      hns1.hyundaicard.com.

;; ADDITIONAL SECTION:
hns1.hyundaicard.com.   3600    IN      A       61.40.236.100
hns2.hyundaicard.co.kr. 3600    IN      A       210.182.190.100
hns1.hyundaicard.co.kr. 3600    IN      A       210.182.190.100
hns2.hyundaicard.com.   3600    IN      A       210.182.190.100

;; Query time: 189 msec
;; SERVER: 61.40.236.100#53(61.40.236.100) (UDP)
;; WHEN: Mon Aug 12 10:57:57 UTC 2024
;; MSG SIZE  rcvd: 229

I don't know if this is the root cause of the problem you're seeing, I just know that inconsistent delegations often lead to weird random issues with systems trying to resolve your domain.

5 Likes

Thanks for sharing your thoughts. could you please advise us if you have any other tips on debugging this DNS delegation error? It would be helpful if you could share any other tips.

1 Like

The core of it is that the nameservers listed with your registrar for your domain need to be the same as the nameservers listed by those authoritative DNS servers themselves.

If hns1.hyundaicard.com & hns2.hyundaicard.com are supposed to be the only DNS servers, then they should only return those two names when queried for the NS records for hyundaicard.com.

If hns1.hyundaicard.co.kr and hns2.hyundaicard.co.kr are supposed to also be DNS servers for the domain, then they should be listed at the registrar as well. (Though it seems weird that they both have the same IP address; that should probably be checked as well.)

The short of it is that you need to get your domain name working properly first, and only then can you get a certificate. Or at least, it makes it much harder to figure out what else might be wrong that would prevent you from getting a certificate.

5 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.