$ sudo portinstall ddclient $ sudo vi /etc/rc.conf ddclient_enable="YES" ←追加する
$ curl -O https://aur.archlinux.org/packages/dd/ddclient-valuedomain/ddclient-valuedomain.tar.gz $ tar xvzf ddclient-valuedomain.tar.gz $ sudo patch /usr/local/sbin/ddclient < ddclient-valuedomain/ddclient-valuedomain-3.8.1.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- ddclient.old 2011-11-28 06:20:43.993483966 +0900 |+++ ddclient 2011-11-28 06:47:18.383505412 +0900 -------------------------- Patching file /usr/local/sbin/ddclient using Plan A... Hunk #1 succeeded at 563. Hunk #2 succeeded at 2195 (offset 2 lines). Hunk #3 succeeded at 3683 (offset 2 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |--- sample-etc_ddclient.conf.old 2011-11-28 06:47:34.346836170 +0900 |+++ sample-etc_ddclient.conf 2011-11-28 06:50:41.560172977 +0900 -------------------------- File to patch: ^C
$ sudo vi /usr/local/etc/ddclient.conf daemon=300 syslog=yes ssl=no use=web protocol=valuedomain server=dyn.value-domain.com login=更新するドメイン password=パスワード 更新するDNSレコード(@とかsubdomainとか。VALUE DOMAINのDNSレコード情報に書いたもの) $ sudo chmod 600 /usr/local/etc/ddclient.conf
$ sudo ddclient -daemon=0 -verbose SUCCESS: updating 更新するDNSレコード: 0: OK: IP address set to xxx.yyy.zzz.www. $ sudo ddclient -daemon=0 -verbose SUCCESS: 更新するDNSレコード: skipped: IP address was already set to xxx.yyy.zzz.www.
$ sudo /usr/local/etc/rc.d/ddclient start