112990 发表于 2006-11-11 02:49:36

动态ADSL更新DDNS失败,请高手帮忙

按大侠所写的脚本,没有成功!我用的是ROS2.9.27 L6 PJ版!动态ADSL拨号!
用户名和密码我都填上去了!LOG里记录了错误,内容如下:
DDNS:Begin
DDNS:Sending UPDATE!
connect error
请高手帮忙**解决!!!本人一直没脱离掉router+windows+花生壳!!!请告诉为什么会提示connect error错误?我看不懂这些代码!共同探讨共同学习!偶是新手,问题简单别不理采!
global ddns-host "*1" 为什么是*1?而不是changeip.com?(我将*1换成changeip.com还是提示连接错误)

贴上自动更新IP脚本!此脚本为changeip.com提供的免费动态DNS域名解释,ROUTERS自动更新IP脚本!
脚本如下(有汉字的地方我按我的注册信息改过,pppoe拨号的interface我的是pppoe-out):
:log info "DDNS: Begin"

:global ddns-user "用户名"
:global ddns-pass "密码"
:global ddns-host "*1"
:global ddns-interface "pppoe拨号的interface我的是pppoe-out"

:global ddns-system ("mt-" . version] )

:global ddns-ip [ /ip address get address ]

:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }

:if ([ :typeof $ddns-ip ] = nil ) do={

:log info ("DDNS: No ip address present on " . $ddns-interface . ", please check.")

} else={

:if ($ddns-ip != $ddns-lastip) do={

    :log info "DDNS: Sending UPDATE!"
    :log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
    :global ddns-lastip $ddns-ip

} else={

    :log info "DDNS: No change"

}

}

:log info "DDNS: End"

[ 本帖最后由 112990 于 2006-11-11 02:54 编辑 ]

大连天空 发表于 2006-11-11 08:38:16

回复 #1 112990 的帖子

你的程序跟我现在用的是相同的,只有global ddns-system ("mt-" . version] ) 不同,感觉没啥大用

:log info "DDNS:开始"

:global ddns-user "username"
:global ddns-pass "password"
:global ddns-host "*1"
:global ddns-interface "pppoe-out"

:global ddns-ip [ /ip address get address ]

:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }

:if ([ :typeof $ddns-ip ] = nil ) do={

:log info ("DDNS: No ip address present on " . $ddns-interface . ", please check.")

} else={

:if ($ddns-ip != $ddns-lastip) do={

    :log info "DDNS: Sending UPDATE!"
    :log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
    :global ddns-lastip $ddns-ip

} else={

    :log info "DDNS: 没有改变"

}

}

:log info "DDNS: 结束"

[ 本帖最后由 大连天空 于 2006-11-11 08:42 编辑 ]

大连天空 发表于 2006-11-11 08:46:15

logs

112990 发表于 2006-11-11 09:40:14

为什么我用你的这个脚本也不行?你是几点几版的ROUTER..?怎么和我用的WINBOX完全不一样?
中间显示用户名和IP..

112990 发表于 2006-11-11 09:48:34

试了..还是connect error请问是changeip.com出问题了吗.?我怎么打开changeip.com网站,点login提示找不到该页

[ 本帖最后由 112990 于 2006-11-11 10:24 编辑 ]

112990 发表于 2006-11-11 11:33:52

2楼兄弟.请帮帮我,为什么老提示连接错误?脚本我换成你的了..

112990 发表于 2006-11-11 11:52:07

解决了,是DNS没设置导致连接错误!!!

vslzx 发表于 2007-4-18 11:16:24

呵呵,和我的情况一样,就是DNS没有设置,所以连接错误,设置好了就OK了

dboy2004 发表于 2007-6-25 18:24:34

请问我的为什么不能更新啊!!我试过重启几次每次都是没改变.但外网是变得拉``

dboy2004 发表于 2007-6-25 18:41:50

请问是在/IP DNS里设吗?,我设了还是不行,提示了一次DDNS ERROR TIMEOUT后,下面的就是开始,没改变,结束.但我还是不能连接!!

k71g 发表于 2007-11-2 20:57:03

dhcp »òÕ߹̶¨ipµÄ£¨ether2ÊÇÍâÍø¿¨£©

:log info "DDNS:¿ªÊ¼"

:global ddns-user "k71g"
:global ddns-pass "k71g"
:global ddns-host "*2"
:global ddns-interface "ether2"

:global ddns-ip [ /ip address get address ]

:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }

:if ([ :typeof $ddns-ip ] = nil ) do={

:log info ("DDNS: No ip address present on " . $ddns-interface . ", please check.")

} else={

:if ($ddns-ip != $ddns-lastip) do={

    :log info "DDNS: Sending UPDATE!"
    :log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
    :global ddns-lastip $ddns-ip

} else={

    :log info "DDNS: ûÓиıä"

}

}

:log info "DDNS: ½áÊø"












pppoe »òÕßadslµÄ£¨pppoe-out1ÊÇÍâÍø¿¨,²¦ºÅ³öÈ¥Á¬½ÓºÃµÄ£¬·ÇÎïÀí£©



:log info "DDNS:¿ªÊ¼"

:global ddns-user "k71g"
:global ddns-pass "k71g"
:global ddns-host "*1"
:global ddns-interface "pppoe-out1"

:global ddns-ip [ /ip address get address ]

:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }

:if ([ :typeof $ddns-ip ] = nil ) do={

:log info ("DDNS: No ip address present on " . $ddns-interface . ", please check.")

} else={

:if ($ddns-ip != $ddns-lastip) do={

    :log info "DDNS: Sending UPDATE!"
    :log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
    :global ddns-lastip $ddns-ip

} else={

    :log info "DDNS: ûÓиıä"

}

}

:log info "DDNS: ½áÊø"

wj20zz 发表于 2007-11-3 15:05:35

看看我这个正确吗?

看看我这个正确吗?

cracks 发表于 2007-11-3 17:36:36

我用的是装在内网一台机子上,或是找个支持ddns的100来远的路由器。呵呵。

kiwi 发表于 2008-9-8 11:30:16

问题解决了~~感谢大大经验分享!!

downsky 发表于 2009-12-26 14:29:04

:log info "DDNS: 开始"

:global ddns-user "******"
:global ddns-pass "******"
:global ddns-host "*1"
:global ddns-interface "pppoe-out1"

:global ddns-ip [ /ip address get address ]

:if ([ :typeof $ddns-lastip ] = nil ) do={ :global ddns-lastip 0.0.0.0/0 }

:if ([ :typeof $ddns-ip ] = nil ) do={

:log info ("DDNS: No ip address present on " . $ddns-interface . ", please check.")

} else={

:if ($ddns-ip != $ddns-lastip) do={

    :log info "DDNS: Sending UPDATE!"
    :log info [ /tool dns-update name=$ddns-host address=[:pick $ddns-ip 0 [:find $ddns-ip "/"] ] key-name=$ddns-user key=$ddns-pass ]
    :global ddns-lastip $ddns-ip

} else={

    :log info "DDNS: 没有改变"

}

}

:log info "DDNS: 结束"
我是这样子的,但是LOG里面什么信息也没有。如果我在机器上面打开www.changeip.com,登入之后解析是正常的,问题好像是我的ROS不能登入www.changeip.com。:global ddns-host "*1"这一句不是很明白。希望有人指点!
页: [1]
查看完整版本: 动态ADSL更新DDNS失败,请高手帮忙