2010-06-27

ddclientメモ

以前から使っていたDiCEではここ最近になってなぜかIPの更新ができなくなってしまったので、DynDNS.comの説明を参考にしてddclientを導入した。

ダイナミックDNSサービスはDynDNSを利用
https://www.dyndns.com/

IPアドレス更新クライアントについて
https://www.dyndns.com/support/clients/

Linux / UNIX Update Clients
https://www.dyndns.com/support/clients/unix.html


上側に書いてあったのでddclientを採用。
主要なOSのバイナリは配布されている。
debianなら導入はapt-getでも可。


DynDNSを使っていれば設定ファイルは以下から自動で生成できる
https://www.dyndns.com/support/tools/clientconfig.html

なかみはこんな感じ

## ddclient configuration file
daemon=600
# check every 600 seconds
syslog=yes
# log update msgs to syslog
mail-failure=メールアドレス # 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=ログイン名
password=パスワード
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
ホスト名

/etc/ddclient.confに書いて、/etc/init.d/ddclient restart で完了

0 件のコメント:

コメントを投稿

ZenBackWidget