mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-07 00:23:44 +08:00
Root A and AAAA records return properly for mixed-case queries
When queried with a mixed-case domain, e.g. "SsLiP.Io", the A and AAAA records are properly returned. Previously they weren't. This is a problem when Let's Encrypt queries with a mixed-case domain, which it does for reasons which are not clear: <https://github.com/letsencrypt/boulder/issues/1243> fixes: ``` Failed authorization procedure. sslip.io (http-01): urn:acme:error:unknownHost :: The server could not resolve a domain name :: No valid IP addresses found for sslip.io ```
This commit is contained in:
@@ -234,7 +234,8 @@ pdns_pipe: |
|
||||
answer_mx_query
|
||||
fi
|
||||
if qtype_is "A"; then
|
||||
if [ $QNAME == $XIP_DOMAIN ]; then
|
||||
LC_QNAME=$(echo $QNAME | tr 'A-Z' 'a-z')
|
||||
if [ $LC_QNAME == $XIP_DOMAIN ]; then
|
||||
answer_root_a_query
|
||||
else
|
||||
if subdomain_is_dashed_ip; then
|
||||
@@ -246,7 +247,8 @@ pdns_pipe: |
|
||||
fi
|
||||
|
||||
if qtype_is "AAAA"; then
|
||||
if [ $QNAME == $XIP_DOMAIN ]; then
|
||||
LC_QNAME=$(echo $QNAME | tr 'A-Z' 'a-z')
|
||||
if [ $LC_QNAME == $XIP_DOMAIN ]; then
|
||||
answer_root_aaaa_query
|
||||
else
|
||||
if subdomain_is_dashed_ipv6; then
|
||||
|
Reference in New Issue
Block a user