Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Cron task to force Let's Encrypt API server to resolve to IPv4.

Notifications You must be signed in to change notification settings

letsdebug/letsencrypt-no-ipv6-hosts-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

letsencrypt-no-ipv6-hosts-cron

This shell script forces acme-v02.api.letsencrypt.org to resolve via IPv4 on servers with IPv6 interfaces that are enabled but dysfunctional in any number of ways.

It works by updating an entry in the server's /etc/hosts file on a schedule, to the latest IPv4 address found for that domain. This is necessary because the IP address rotates regularly.

Installation

# Download script
wget -O /usr/local/sbin/letsencrypt-no-ipv6-hosts-cron.sh "https://raw.githubusercontent.com/letsdebug/letsencrypt-no-ipv6-hosts-cron/master/letsencrypt-no-ipv6-hosts-cron.sh"
chmod 0700 /usr/local/sbin/letsencrypt-no-ipv6-hosts-cron.sh

# Install cron task
echo '0 * * * * root /usr/local/sbin/letsencrypt-no-ipv6-hosts-cron.sh' > /etc/cron.d/letsencrypt-no-ipv6-hosts-cron
chmod 0600 /etc/cron.d/letsencrypt-no-ipv6-hosts-cron

About

Cron task to force Let's Encrypt API server to resolve to IPv4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages