ddclient-3.6.6インストール
ddclientインストール
# cd /usr/ports/dns/ddclient # make clean # make install # cp /usr/local/etc/ddclient.conf.sample /usr/local/etc/ddclient.conf # chmod 644 /usr/local/etc/ddclient.conf
ddclient.confの設定
# vi /usr/local/etc/ddclient.conf use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address login=********** # default login password=********** # default password server=members.dyndns.org, \ protocol=dyndns2 \ vm.selfip.com # chmod 600 /usr/local/etc/ddclient.conf
動作確認
# /usr/local/sbin/ddclient -daemon=0 -query use=if, if=em0 address is 192.168.1.5 use=if, if=plip0 address is NOT FOUND use=if, if=lo0 address is 127.0.0.1 use=web, web=dnspark address is 60.34.23.199 use=web, web=dyndns address is 60.34.23.199 use=web, web=checkip.dyndns.org/ address is 60.34.23.199
自動起動設定
# vi /etc/rc.conf ddclient_enable="YES" # /usr/local/etc/rc.d/ddclient.sh start
ログファイルやキャッシュの確認
==> /var/log/messages < == Apr 1 13:28:28 tiesto ddclient[37182]: SUCCESS: updating vm.selfip.com: good: IP address set to 60.34.23.199 # cat /usr/local/etc/ddclient.cache ## ddclient-3.6.6 ## last updated at Sat Apr 1 13:28:27 2006 (1143865707) atime=1143865707,backupmx=0,custom=0,host=vm.selfip.com,ip=60.34.23.199,mtime=1143865707,mx=,static=0,status=good,warned-min-error-interval=0,warned-min-interval=0,wildcard=0,wtime=0 vm.selfip.com
Posted: 4月 1st, 2006 under ddclient.
Comments: none