如何設定ddclient每30天刷新一次?

如何設定ddclient每30天刷新一次?

是否可以在 中設定 ddclient /etc/ddclient.conf,除了在 IP 位址變更時定期發送動態 DNS 更新?

為什麼? Fremium 提供者 dyndns 要求每 30 天更新一次,否則免費帳戶將過期。我從 AT&T 轉到了 Sonic.net,這是一個更可靠的服務供應商,這從來都不是問題。現在我的動態 IP 位址可以穩定幾個月。

答案1

請參閱 ddclient 自述文件:

USING DDCLIENT WITH cron

If you have not configured ddclient to use daemon-mode, you'll need to
configure cron to force an update once a month so that the dns entry will
not become stale.

  ## configure cron to force an update twice a month
  cp sample-etc_cron.d_ddclient /etc/cron.d/ddclient
  vi /etc/cron.d/ddclient

相關內容