Free your hands Freenom domain name automatic renewal

Original link: https://blog.saky.site/post/freenom-tool/

Github: https://ift.tt/I2btQ84

This article uses Debian as an example to illustrate

I thought that all cloud functions are charged, so this article only introduces the method of Docker deployment

? Deploy via Docker

The Docker repository address is: https://ift.tt/f6GjbYZ The architectures supported by this image are linux/amd64, linux/arm64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/ v6, theoretically supports Synology, QNAP, Raspberry Pi and various types of VPS

  1. Install Docker
 bash <(curl -sSL https://cdn.jsdelivr.net/gh/SuperManito/LinuxMirrors@main/DockerInstallation.sh)
  1. Deploy the container
 docker run -d --name freenom --restart always -v $(pwd):/conf -v $(pwd)/logs:/app/logs luolongfei/freenom

Or, if you want to customize the script execution time, the command is as follows

 docker run -d --name freenom --restart always -v $(pwd):/conf -v $(pwd)/logs:/app/logs -e RUN_AT="11:24" luolongfei/freenom

The above command is only one more than the previous command -e RUN_AT=”11:24”, of which 11:24 means that the renewal task is executed at 11:24 Beijing time every day, you can customize this time. The RUN_AT parameter here also supports the time form in the CRON command. For example, -e RUN_AT=”9 11 * * *” means that the renewal task is executed at 11:09 Beijing time every day. If you do not want to execute the task every day, you only want to Execute in a few days, just modify the value of RUN_AT.

Note : Customizing script execution time is not recommended. Because you may define the same point in time as many people, this may cause everyone to initiate requests to Freenom’s server at the same time, making Freenom unable to provide services stably. And if you don’t define the time, the program will automatically designate a random time point from 06 to 23 o’clock Beijing time as the execution time, and it will be automatically re-designated every time the container is restarted.

This article is reprinted from: https://blog.saky.site/post/freenom-tool/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment