我无法将 debian jessie 配置为 noip.com 更新程序。我的配置是这样的:
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
use=web
web=checkip.dyndns.com
web-skip='Current IP Address: '
protocol=dyndns2
server=dynupdate.no-ip.com/nic/update
login=myusername
password='mypass'
myhost.noip.me
Run Code Online (Sandbox Code Playgroud)
一切似乎都很好,但如果我 ping myhost.noip.me,IP 地址不会更新。通过检查
ddclient -daemon=0 -debug -verbose -noquiet 2 /etc/ddclient.conf
Run Code Online (Sandbox Code Playgroud)
我得到以下答复:
.conf
=== opt ====
opt{cache} : <undefined>
opt{cmd} : <undefined>
opt{cmd-skip} : <undefined>
opt{daemon} : 0
opt{debug} : 1
opt{exec} : <undefined>
opt{facility} : <undefined>
opt{file} : <undefined>
opt{force} : <undefined>
opt{foreground} : <undefined>
opt{fw} : <undefined>
opt{fw-login} : <undefined>
opt{fw-password} : <undefined>
opt{fw-skip} : <undefined>
opt{geturl} : <undefined>
opt{help} : <undefined>
opt{host} : <undefined>
opt{if} : <undefined>
opt{if-skip} : <undefined>
opt{ip} : <undefined>
opt{login} : <undefined>
opt{mail} : <undefined>
opt{mail-failure} : <undefined>
opt{max-interval} : 2592000
opt{min-error-interval} : 300
opt{min-interval} : 30
opt{options} : <undefined>
opt{password} : <undefined>
opt{pid} : <undefined>
opt{postscript} : <undefined>
opt{priority} : <undefined>
opt{protocol} : <undefined>
opt{proxy} : <undefined>
opt{query} : <undefined>
opt{quiet} : 0
opt{retry} : <undefined>
opt{server} : <undefined>
opt{ssl} : <undefined>
opt{syslog} : <undefined>
opt{test} : <undefined>
opt{timeout} : <undefined>
opt{use} : <undefined>
opt{verbose} : 1
opt{web} : <undefined>
opt{web-skip} : <undefined>
=== globals ====
globals{daemon} : 60
globals{debug} : 1
globals{login} : myusername
globals{password} : mypass
globals{protocol} : dyndns2
globals{quiet} : 0
globals{server} : dynupdate.no-ip.com/nic/update
globals{use} : web
globals{verbose} : 1
globals{web} : checkip.dyndns.com
globals{web-skip} : Current IP Address:
=== config ====
config{myhost.noip.me}{atime} : 0
config{myhost.noip.me}{backupmx} : 0
config{myhost.noip.me}{cacheable} : ARRAY(0x1770c50)
config{myhost.noip.me}{cmd} : <undefined>
config{myhost.noip.me}{cmd-skip} :
config{myhost.noip.me}{custom} : 0
config{myhost.noip.me}{fw} :
config{myhost.noip.me}{fw-login} : <undefined>
config{myhost.noip.me}{fw-password} :
config{myhost.noip.me}{fw-skip} :
config{myhost.noip.me}{host} : myhost.noip.me
config{myhost.noip.me}{if} : ppp0
config{myhost.noip.me}{if-skip} :
config{myhost.noip.me}{ip} : <undefined>
config{myhost.noip.me}{login} : myusername
config{myhost.noip.me}{max-interval} : 2592000
config{myhost.noip.me}{min-error-interval} : 300
config{myhost.noip.me}{min-interval} : 30
config{myhost.noip.me}{mtime} : 0
config{myhost.noip.me}{mx} :
config{myhost.noip.me}{password} : mypass
config{myhost.noip.me}{protocol} : dyndns2
config{myhost.noip.me}{script} : /nic/update
config{myhost.noip.me}{server} : dynupdate.no-ip.com/nic/update
config{myhost.noip.me}{static} : 0
config{myhost.noip.me}{status} :
config{myhost.noip.me}{use} : web
config{myhost.noip.me}{warned-min-error-interval} : 0
config{myhost.noip.me}{warned-min-interval} : 0
config{myhost.noip.me}{web} : checkip.dyndns.com
config{myhost.noip.me}{web-skip} : Current IP Address:
config{myhost.noip.me}{wildcard} : 0
config{myhost.noip.me}{wtime} : 30
=== cache ====
cache{myhost.noip.me}{atime} : 0
cache{myhost.noip.me}{backupmx} : 0
cache{myhost.noip.me}{custom} : 0
cache{myhost.noip.me}{host} : myhost.noip.me
cache{myhost.noip.me}{ip} : 12.34.56.78
cache{myhost.noip.me}{mtime} : 1437992275
cache{myhost.noip.me}{mx} :
cache{myhost.noip.me}{script} : /nic/update
cache{myhost.noip.me}{static} : 0
cache{myhost.noip.me}{status} :
cache{myhost.noip.me}{warned-min-error-interval} : 0
cache{myhost.noip.me}{warned-min-interval} : 0
cache{myhost.noip.me}{wildcard} : 0
cache{myhost.noip.me}{wtime} : 30
DEBUG: proxy =
DEBUG: url = checkip.dyndns.com
DEBUG: server = checkip.dyndns.com
CONNECT: checkip.dyndns.com
CONNECTED: using HTTP
SENDING: GET / HTTP/1.0
SENDING: Host: checkip.dyndns.com
SENDING: User-Agent: ddclient/3.8.2
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Content-Type: text/html
RECEIVE: Server: DynDNS-CheckIP/1.0
RECEIVE: Connection: close
RECEIVE: Cache-Control: no-cache
RECEIVE: Pragma: no-cache
RECEIVE: Content-Length: 103
RECEIVE:
RECEIVE: <html><head><title>Current IP Check</title></head><body>Current IP Address: 12.34.56.78</body></html>
DEBUG: get_ip: using web, checkip.dyndns.com reports 12.34.56.78
SUCCESS: myhost.noip.me: skipped: IP address was already set to 12.34.56.78.
Run Code Online (Sandbox Code Playgroud)
I tooks like my current (artificial) IP "12.34.56.78" has been set properly. Now if I ping (my artificial host) myhost.noip.me I get a different IP.
Any suggestion what I need to change to get ddclient working with noip.com?
小智 -1
protocol=dyndns2
use=web, if=eth0
server=dynupdate.no-ip.com
login=username@email.com
password='mysuperpassword'
myhost.no-ip.org
Run Code Online (Sandbox Code Playgroud)
你有“if = ppp0”。您使用“拨号”连接吗?我的有“if=eth0”,因为 dsl ppp 在调制解调器/路由器上。
Your ping test is on the same network, or you try on a different (outside) computer? Could be a local DNS issue.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
10053 次 |
最近记录: |