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 lookup may fail if response has differing case #1112

Closed
jsha opened this issue Nov 8, 2015 · 5 comments
Closed

DNS lookup may fail if response has differing case #1112

jsha opened this issue Nov 8, 2015 · 5 comments

Comments

@jsha
Copy link
Contributor

jsha commented Nov 8, 2015

At https://community.letsencrypt.org/t/the-server-could-not-resolve-a-domain-name/3142/4, mf_bin reports getting unknownHost :: The server could not resolve a domain name :: No IPv4 addresses found for www.leinwand-bilder.com.

They note that the response for that domain is capitalized:

nslookup www.leinwand-bilder.com1 ns2.core-networks.eu
Server: ns2.core-networks.eu
Address: 78.111.72.98#53

Name: www.LEINWAND-BILDER.COM
Address: 82.211.34.132

It's possible that our DNS code doesn't handle responses whose case doesn't match the case of the question. I can reproduce the issue locally: my Boulder instance gives the same error for that domain if I point Boulder at real DNS instead of the local test DNS.

@billzhong
Copy link

I am having same issue: unknownHost :: The server could not resolve a domain name :: No IPv4 addresses found for "my domain"

@jsha
Copy link
Contributor Author

jsha commented Nov 9, 2015

@billzhong: does your domain also have uppercase characters in it when you run nslookup? It would help us debug if you'd post the actual name of your domain. Thanks!

@vfontes
Copy link

vfontes commented Jan 12, 2016

I'm also having the same issue:

Press ENTER to continue
Failed authorization procedure. radius.canall.com.br (http-01): urn:acme:error:unknownHost :: The server could not resolve a domain name :: No IPv4 addresses found for radius.canall.com.br

IMPORTANT NOTES:
 - The following 'urn:acme:error:unknownHost' errors were reported by
   the server:

   Domains: radius.canall.com.br
   Error: The server could not resolve a domain name

However, I can resolve the host name without issues on any DNS server:

root@radius:/usr/src/letsencrypt# dig @8.8.8.8 radius.canall.com.br

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @8.8.8.8 radius.canall.com.br
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42159
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;radius.canall.com.br.      IN  A

;; ANSWER SECTION:
radius.canall.com.br.   299 IN  A   172.16.1.8

;; Query time: 141 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Jan 12 21:57:19 2016
;; MSG SIZE  rcvd: 54

@jsha
Copy link
Contributor Author

jsha commented Jan 13, 2016

We use unbound for DNS, which uses query capitalization to add additional bits of query entropy, improving resistance to DNS spoofing. That is often the cause of issues like this one, where we fail to resolve a name that resolves with dig. However, I checked radius.canall.com.br, and it appears to copy over the capitalization, so that's not the issue. I will continue to think about this. Thanks for reporting!

@vfontes
Copy link

vfontes commented Jan 13, 2016

While you check on this, is there a workaround that would allow me to get this certificate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants