ddclient
自宅サーバをSheevaにリプレースしてからddclientが動いてない。ddclient自体は以前と同様動かしているのだが、expireの警告が来る。
root@sheeva# ddclient -verbose -debug [/etc] : : cache{pegandgiff.dyndns.org}{warned-min-error-interval} : 0 cache{pegandgiff.dyndns.org}{warned-min-interval} : 0 cache{pegandgiff.dyndns.org}{wildcard} : 0 cache{pegandgiff.dyndns.org}{wtime} : 30 DEBUG: get_ip: using if, web reports <undefined> WARNING: unable to determine IP address
"web reports
root@sheeva# diff -uw ddclient.conf.org ddclient.conf [/etc] --- ddclient.conf.org 2010-11-28 10:51:45.000000000 +0900 +++ ddclient.conf 2010-11-28 10:52:31.000000000 +0900 @@ -4,7 +4,7 @@ pid=/var/run/ddclient.pid protocol=dyndns2 -use=if, if=web +use=web server=members.dyndns.org login=hao55 password='xxxxxxxx'
"use=web"に変更したところ、動くようになった。
root@sheeva# ddclient -verbose -debug [/exports/home/hao] : : RECEIVE: Server: DynDNS-CheckIP/1.0 RECEIVE: Connection: close RECEIVE: Cache-Control: no-cache RECEIVE: Pragma: no-cache RECEIVE: Content-Length: 106 RECEIVE: RECEIVE: <html><head><title>Current IP Check</title></head><body>Current IP Add ress: 222.151.153.84</body></html> DEBUG: get_ip: using web, http://checkip.dyndns.org/ reports 222.151.153.84 INFO: forcing updating pegandgiff.dyndns.org because no cached entry exists. DEBUG: DEBUG: nic_dyndns2_update ------------------- INFO: setting IP address to 222.151.153.84 for pegandgiff.dyndns.org UPDATE: updating pegandgiff.dyndns.org DEBUG: proxy = DEBUG: url = http://members.dyndns.org/nic/update?system=dyndns&hostname=p egandgiff.dyndns.org&myip=222.151.153.84 DEBUG: server = members.dyndns.org CONNECT: members.dyndns.org CONNECTED: using HTTP SENDING: GET /nic/update?system=dyndns&hostname=pegandgiff.dyndns.org&myip=222. 151.153.84 HTTP/1.0 SENDING: Host: members.dyndns.org SENDING: Authorization: Basic aGFvNTU6aG8wNDA5NjM= SENDING: User-Agent: ddclient/3.7.3 SENDING: Connection: close SENDING: RECEIVE: HTTP/1.1 200 OK RECEIVE: Date: Mon, 22 Nov 2010 13:22:45 GMT RECEIVE: Server: Apache RECEIVE: X-UpdateCode: n RECEIVE: Content-Type: text/plain RECEIVE: Connection: close RECEIVE: RECEIVE: good 222.151.153.84 SUCCESS: updating pegandgiff.dyndns.org: good: IP address set to 222.151.153.84 root@sheeva#