找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3210|回复: 2

[脚本] 请教,帮看一下这个脚本“支持3322动态域名的脚本”

[复制链接]
发表于 2012-5-25 02:13:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 online-boy 于 2012-5-25 02:14 编辑

:global ednsuser "用户名"
:global ednspass "密码"
:global ednshost "xxx.3322.org"
:global ednsinterface "pppoe-out1"  #拨号名称
:global members "http://members.3322.org/dyndns/update?system=dyndns"
:global status
:global status [/interface get [/interface find  name=$ednsinterface] running]
:if ($status!=false) do={
:global ednslastip [:resolve $ednshost]
:if ([ :typeof $ednslastip ] = nil ) do={ :global ednslastip "0" }
:global ednsiph [ /ip address get [/ip address find interface=$ednsinterface ] address ]
:global ednsip [:pick $ednsiph 0 [:find $ednsiph "/">
:global ednsstr "&hostname=$ednshost&myip=$ednsip"
:if ($ednslastip != $ednsip) do={
/tool fetch url=($members . $ednsstr) mode=http user=$ednsuser password=$ednspass dst-path=$ednshost
:delay 2
:global result [/file get $ednshost contents]
:log info ($ednshost . " " .$result)
/file remove $ednshost ;
}
}


个人觉得红色部分有问题!
routeros
 楼主| 发表于 2012-5-27 22:26:41 | 显示全部楼层
哪位帮看一下!
routeros
回复

使用道具 举报

 楼主| 发表于 2012-5-30 20:27:12 | 显示全部楼层
没人用过这个脚本么?
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-9-29 19:17 , Processed in 0.048760 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表