[[ddclient設定]]
差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
| — |
ddclient設定 [2009/02/07 23:08] (現在) ebi 作成 |
||
|---|---|---|---|
| ライン 1: | ライン 1: | ||
| + | ====== ddclientのインストール ====== | ||
| + | <code bash> | ||
| + | apt-get install ddclient | ||
| + | </code> | ||
| + | |||
| + | ====== ddclientの設定 ====== | ||
| + | * dyndns.comのサイトから設定ファイルを生成する | ||
| + | * support→dns tools→Update Client Configurator | ||
| + | <code bash> | ||
| + | emacs /etc/ddclient.conf | ||
| + | </code> | ||
| + | * 生成された設定ファイルの内容を記述(パスワード部分のみ編集する) | ||
| + | |||
| + | 私の環境では以下のようになりました。10分に1回確認してくれるようです。 | ||
| + | <code> | ||
| + | ## ddclient configuration file | ||
| + | daemon=600 # check every 600 seconds | ||
| + | syslog=yes # log update msgs to syslog | ||
| + | mail-failure=ebibibi@gmail.com # 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=ebibibi | ||
| + | password=##ここにパスワードを入力## | ||
| + | |||
| + | ## Default options | ||
| + | protocol=dyndns2 | ||
| + | server=members.dyndns.org | ||
| + | |||
| + | ## Dynamic DNS hosts | ||
| + | ebi.dyndns.biz | ||
| + | </code> | ||
| + | |||
| + | ====== 再起動 ====== | ||
| + | <code bash> | ||
| + | /etc/init.d/ddclient restart | ||
| + | </code> | ||
| + | |||
| + | ====== 確認 ====== | ||
| + | * 更新に成功していることを確認する。 | ||
| + | <code bash> | ||
| + | less /var/log/syslog | ||
| + | </code> | ||
| + | <code> | ||
| + | Feb 7 22:34:24 debian ddclient[23477]: WARNING: caught SIGTERM; exiting | ||
| + | Feb 7 22:34:26 debian ddclient[23778]: SUCCESS: updating ebi.dyndns.biz: good: IP address set to 219.174.68.57 | ||
| + | </code> | ||
