diff --git a/certbot-dns-auth.py b/certbot-dns-auth.py index 3ca61a1..c57d053 100755 --- a/certbot-dns-auth.py +++ b/certbot-dns-auth.py @@ -7,7 +7,7 @@ """ -import os, sys +import os, sys, time def main(): @@ -27,11 +27,14 @@ # end if dirName = os.path.dirname(os.path.abspath(sys.argv[0])) - cmd = dirName + "/update-record.py -c " + dirName + "/conf.cfg" + " -r TXT _acme-challenge." + d + " " + v; + cmd = dirName + "/update-record.py -c " + dirName + "/conf.cfg" + " -t 300 -r TXT _acme-challenge." + d + " " + v; os.system(cmd) + + # sleep to make sure the change has time to propagate over to DNS + time.sleep(25) # end main if __name__ == '__main__': main() -# end if \ No newline at end of file +# end if