Last active
January 27, 2024 02:08
-
-
Save okinjp/79f084c1e365cc90723cca52a7c4f424 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ddclinet 3.10以降向け | |
# 1. zone nameはCloudflare上の登録ドメイン | |
# www.example.com なら examle.com | |
# 2. emailはCloudflare登録メールアドレス | |
# 3. apikeyはCloudflare -> My profile -> API Tokensから発行 | |
# 4. crontabで自動化する場合 | |
# * * * * * ddclient --file <config file path> | |
# Aレコード用にIPアドレスを返すサイトをwebに指定する | |
# https://api.ipify.org/ など | |
protocol=cloudflare \ | |
use=web, web='https://check.v4.ip1.info/' \ | |
zone='<zone name>' \ | |
login=<email> \ | |
password='<apikey>' \ | |
<target domain> | |
# AAAAレコード用にIPアドレスを返すサイトをwebに指定する | |
protocol=cloudflare \ | |
use=web, web='https://check.v6.ip1.info/' \ | |
zone='<zone name>' \ | |
login=<email> \ | |
password='<apikey>' \ | |
<target domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment