ddclinetの設定をArch linuxで行った.

まず,ddclinetのインストール

# pacman -Sy ddclient

環境変数の$LC_*が設定されていないとエラーや警告がでる(perlで).
なので,この記事のロケールの設定を参照して設定する.

次に,サービスに登録して自動起動できるようにする.

# systemctl enable ddclinet.service

あとは,/etc/ddclinet/ddclinet.confの設定を行う.
私は,DynamicDNSを使用しているので,そこで生成されるものをそのまま使用した.

## ddclient configuration file
daemon=600
# check every 600 seconds
syslog=yes
# log update msgs to syslog
mail-failure=#YOUR Mail# # Mail failed updates to user
pid=/var/run/ddclient.pid
# record PID in file.
## Detect IP with our CheckIP server
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
## DynDNS username and password here
login=##YOUR ID##
password=##YOUR PASSWORD##
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
##YOUR HOST 1##,##YOUR HOST 2##


[ad#ad-1]