Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
misc:scripts:letsencrypt-bookmyname-dnschallenge [2020/12/14 16:30] jaxxmisc:scripts:letsencrypt-bookmyname-dnschallenge [2022/11/03 09:36] (current) jaxx
Line 15: Line 15:
 <file bash bmn-JXXXXX-auth.sh> <file bash bmn-JXXXXX-auth.sh>
 #!/bin/bash #!/bin/bash
 +
 +# public DNS servers might be less sticky than ISP ones
 +DNSSERVER="8.8.8.8"
  
 BMN_USER="JXXXXX-FREE" BMN_USER="JXXXXX-FREE"
Line 44: Line 47:
   ((loopcount=loopcount+1))   ((loopcount=loopcount+1))
   echo -n "Try number $loopcount ..."   echo -n "Try number $loopcount ..."
-  recordset=$(dig _acme-challenge.$DOMAIN TXT +short | tr -d "\""  | grep "$CERTBOT_VALIDATION")+  recordset=$(dig @$DNSSERVER _acme-challenge.$DOMAIN TXT +short | tr -d "\""  | grep "$CERTBOT_VALIDATION")
   echo -n "Found '$recordset' ..."   echo -n "Found '$recordset' ..."
   if [[ $recordset == $CERTBOT_VALIDATION ]]   if [[ $recordset == $CERTBOT_VALIDATION ]]