[Ubuntu12.10]DynDNS設定

2013年1月13日 | からmarumi | ファイル: ソフトウェア, 周辺機器.

ペットの監視用にネットワークカメラを設置していますが、DynDNSを更新しているパソコンを入れ替えるので再度「ddclient」をインストール。

↓こちらを参考に(感謝)
ダイナミックDNSの設定
DDNS/DynDNS

端末から

$ sudo LANG=C apt-get install ddclient

※「LANG=C」をつけないとインストール画面が文字化する。多分化けてても適当に進んでOK。

ID・パスワードを登録したものを入力して進み、
[Find public IP using checkip.dyndns.com?]にチェックすると、登録したHostnameが検索されて、完了。

設定ファイルは、/etc/default/ddclient と /etc/ddclient.conf。

ddclientを編集

Configuration for ddclient scripts
# generated from debconf on 2011年 5月 23日 月曜日 07:17:54 JST
#
# /etc/default/ddclient

# Set to “true” if ddclient should be run every time a new ppp connection is
# established. This might be useful, if you are using dial-on-demand.
run_ipup=”false”

# Set to “true” if ddclient should run in daemon mode
# If this is changed to true, run_ipup must be set to false.
run_daemon=”true”

# Set the time interval between the updates of the dynamic DNS name in seconds.
# This option only takes effect if the ddclient runs in daemon mode.
daemon_interval=”600(IPアドレスをチェックする間隔)

※ 自宅用のネットワークカメラなので、600秒間隔くらいで充分かと。

ddclient.confを確認。

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

protocol=dyndns2
use=web, web=checkip.dyndns.com, web-skip=’IP Address’
server=members.dyndns.org
login=(DynDNSに登録したユーザーID)
password=’(DynDNSに登録したパスワード)
○○.○○○.com(DynDNSに登録したHostname)

設定が正しいことを確認。

sudo ddclient -daemon=0 -debug -verbose -noquiet

最後に「SUCCESS:〜」と出ればOK。
ddclient再起動。

sudo /etc/init.d/ddclient restart


タグ: ,

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA