Time-stamp: <02/02/03 01:18:11 kawasan>

cyobiへのアクセスにDynamic-DNSを使用する際のmemo


WEB(http://www.dyndns.org/)経由でアカウント登録する。

NIC Username : cym
email-address : kawa3@m11.alpha-net.ne.jp


メールでパスワードが来た。
Subject: Your Account Information
From: DynDNS 
To: kawa3@m11.alpha-net.ne.jp
Date: Mon, 8 Oct 2001 12:16:04 -0400 (EDT)

Your user account has been created.  This account is your access point to
all functions of the Dynamic DNS Network Services Network Information
Center (NIC).  Do not lose this username and password!	The password can be
changed by logging in to the NIC at http://members.dyndns.org/nic/login You
MUST login to this account within 48 hours of the date on this e-mail to
confirm your address!  Thank you for your support!

Our services are largely free, but we are only able to provide them through
the generosity of our users.  Please visit our donations page at
http://www.dyndns.org/donate.shtml to find out more about our operating
expenses and how you can help.	Thanks!

Username: cym
Password: 62-33-26

Please note: If you did not sign up for this account, this will be the only
communication you will receive.  All non-confirmed (non-logged in) accounts
are deleted after 48 hours, and addresses are not kept on file. We
apologize for any inconvenience this correspondance may have caused, and we
assure you that it was only sent at the request of someone visiting our
site and requesting an account.

DynDNS Network Services Support Department
support@dyndns.org


パスワード変更をする。
62-33-26
↓
XXXXXX ← 秘密 (^^


Host名の取得をする。
sh.homeip.netは、取られていた。
cym.homeip.netは、OK					01:34
でも、なんかイヤなので、cym.homeip.netは、削除する。
cyobi.homeip.netで取得					01:41


IPアドレスの自動設定clientの設定

http://www.xs4all.nl/~zweije/ddns/
にて、
ddns_2.4.6-1_i386.deb
を取ってきてインストールしてみる。

# dpkg -i ddns_2.4.6-1_i386.deb
設定項目なしでサクッと入る。

一般レベルで動作させるには、以下の様に本来の /etc/ddns.conf を使用せず。自分専用のファイルを 使用することで動作できた。
$ /usr/sbin/ddns --configfile=${HOME}/.ddns -m

同じIPアドレスを登録しまくると、スタティックに登録されて しまうらしい?ので、前回と今回のIPアドレスが同じ場合は、 登録に行かない様にしてみる。
file : ~/bin/ip-up からの一部抜粋
# UpDate HOST-Name (Dynaminc-DNS)
if [ "$oldip" != "$ipadd" ]; then
    echo "UpDate Dynaminc-DNS"
    /usr/sbin/ddns --configfile=${HOME}/.ddns -m
else
    echo "Not UpDate Dynaminc-DNS"
fi
これで、取り合えず、終了です。\(^^)/

じゃなかった。2002/01/01より接続形式が変化したよーでIPアドレスの更新が できなくなってしまいました。 現在は、 http://burry.ca:4141/ddclient/ からRPMなファイル ddclient-3.6.2-1.noarch.rpmを ゲットして、deb化したのちにインストールして使ってみよーかと思っています。 まだ、時間がなくてしていない。[Sun Jan 13 02:01:23 2002](^^;

# cd /tmp/
# wget http://burry.ca:4141/ddclient/ddclient-3.6.2-1.noarch.rpm
# alien ddclient-3.6.2-1.noarch.rpm
# dpkg -i ddclient_3.6.2-2_all.deb
# vi /etc/ddclient.conf
# ln -s /etc/rc.d/init.d/ddclient /etc/init.d/ddclient
# update-rc.d ddclient defaults 90
file内容(必要部のみ) : /etc/ddclient.conf
まだ、実検中の為、未記入。
# /etc/init.d/ddclient start
あ。ダメだまだなんか足んないみたい。眠いからまた今度。 [Tue Jan 15 01:00:17 2002]

むー。rpmパッケージからやるのは断念する。
woodyのパッケージにて、ddclientがある。しかし、現状は、3.6.0の バージョンなので、ちょっとダメっぽい。
で、どーするかというと。woodyのソースをひろってきて、それに、 3.6.2のやつを無理矢理入れてdebパッケージを作っちゃう。うーむ。強引。(^^;

$ cd ~/tmp/
$ apt-get source ddclinet (woody/mainのソースから取得)
$ wget http://burry.ca:4141/ddclient/ddclient-3.6.2.tar.gz
$ tar zxvf ddclient-3.6.2.tar.gz
$ cp ddclient-3.6.2/* ddclient-3.6.0/.
$ rm ddclient-3.6.2
$ mv ddclient-3.6.0 ddclient-3.6.2
$ cd ddclient-3.6.2
$ debchange -v 3.6.2-0
$ sudo dpkg-buildpackage -us -uc

あー。
# dpkg -i ddclient_3.6.2-0_all.deb
したけど、インストール中にエラーで終了しちゃった。うーん。debするなら、 ちゃんとパッケージを構築しないとダメなのかな?
うーむ。後日にちゃんとしたdebを作成しようかな?
でも、面倒になってきたので、単純に、/usr/local/以下で管理してすまそうかな?
むー。それにしても時間がない。(;;)


結局、今はこうしてます。
tar+gzipパッケージでInstallしたぁ
# cd ~/tmp/
# wget http://burry.ca:4141/ddclient/ddclient-3.6.2.tar.gz
# tar zxvf ddclient-3.6.2.tar.gz
# cd ddclient-3.6.2
# cp ddclient /usr/local/sbin/.
# cp sample-etc_ddclient.conf /etc/ddclient.conf
# vi /etc/ddclient.conf (必要部のみの抜粋)
  daemon=300
  syslog=yes
  mail=root
  pid=/var/run/ddclient.pid
  use=web, web=checkip.dyndns.org/, web-skip='IP Address'
  login=cym
  password=XXXXXX
  server=members.dyndns.org,		\
  protocol=dyndns2			\
  cyobi.homeip.net
実行は、
# ddclient
でやるとデーモンとして常駐します。 まだ、自動起動とかは入れていません。 なんか負け組って感じだけど。 まぁ。いいかってことで自分を納得させてしまった。
woodyへdist-upgradeしたら、ちゃんとやるかね。(^^;;;;;