OpenSolarisでWebサーバーなんかの準備、DynDNSのddclientについて

 https://www.dyndns.com/support/clients/unix.htmlより、
ddclient-3.7.3をインストールすりゅ><


まず、解凍。

$ wget http://cdn.dyndns.com/ddclient.tar.gz
$ tar -zxf ddclient.tar.gz
$ cd ddclient-3.7.3/

で、インストール。

$ pfexec cp ddclient /usr/sbin/ddclient
$ pfexec mv sample_etc_ddclient_conf ddclient.conf
$ pfexec mkdir /etc/ddclient
$ pfexec cp /etc/ddclient/ddclient.conf

ddclient.confを編集。

$ diff -c sample-etc_ddclient.conf /etc/ddclient/ddclient.conf

*** sample-etc_ddclient.conf    2006-06-15 04:51:48.000000000 +0900
--- /etc/ddclient/ddclient.conf 2010-07-25 19:35:00.557593314 +0900
***************
*** 48,54 ****
  #use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' # found after IP Address
  #
  ## To obtain an IP address from Web status page (using the proxy if defined)
! #use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
  #
  #use=ip,                     ip=127.0.0.1     # via static IP's
  #use=if,                     if=eth0          # via interfaces
--- 48,54 ----
  #use=fw, fw=192.168.1.254/status.htm, fw-skip='IP Address' # found after IP Address
  #
  ## To obtain an IP address from Web status page (using the proxy if defined)
! use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
  #
  #use=ip,                     ip=127.0.0.1     # via static IP's
  #use=if,                     if=eth0          # via interfaces
***************
*** 59,66 ****
  #server=members.dyndns.org                    # default server
  #server=members.dyndns.org:8245                       # default server (bypassing proxies)

! #login=your-login                             # default login
! #password=test                                        # default password
  #mx=mx.for.your.host                          # default MX
  #backupmx=yes|no                              # host is primary MX?
  #wildcard=yes|no                              # add wildcard CNAME?
--- 59,66 ----
  #server=members.dyndns.org                    # default server
  #server=members.dyndns.org:8245                       # default server (bypassing proxies)

! login=<<Username>>                            # default login
! password=<<Password>>                                   # default password
  #mx=mx.for.your.host                          # default MX
  #backupmx=yes|no                              # host is primary MX?
  #wildcard=yes|no                              # add wildcard CNAME?
***************
*** 70,78 ****
  ##
  ## (supports variables: wildcard,mx,backupmx)
  ##
! # server=members.dyndns.org,          \
! # protocol=dyndns2                    \
! # your-dynamic-host.dyndns.org

  ##
  ## dyndns.org static addresses
--- 70,78 ----
  ##
  ## (supports variables: wildcard,mx,backupmx)
  ##
! server=members.dyndns.org,            \
! protocol=dyndns2                      \
! <<Hostname>>

  ##
  ## dyndns.org static addresses

 http://blogs.sun.com/chrisg/entry/ddclient_meets_smfより
smf manifestをコピペ。

$ pfexec svccfg import ddclient.xml

で、perlsslモジュールをインストール。

$ pfexec perl -MCPAN -e shell
cpan>install IO::Socket::SSL

で、テスト*1

$ ddclient -query
...

$ pfexec /usr/sbin/ddclient -daemon=0 -debug -verbose -noquiet
...

FATAL:    Error loading the Perl module IO::Socket::SSL needed for SSL connect.
FATAL:     On Debian, the package libio-socket-ssl-perl must be installed.

で失敗*2、どないせいとw;

*1:なんかテストで少しエラー出てる気がするが無視>A<b

*2:自前でperlのインストールが必要か?