Skip to content

Instantly share code, notes, and snippets.

@okinjp
Last active January 27, 2024 02:08
Show Gist options
  • Save okinjp/79f084c1e365cc90723cca52a7c4f424 to your computer and use it in GitHub Desktop.
Save okinjp/79f084c1e365cc90723cca52a7c4f424 to your computer and use it in GitHub Desktop.
# 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