ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 3772|回复: 2

[交流] 3322国内动态域名服务

[复制链接]
发表于 2014-8-5 14:40:37 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
/system scheduler
add comment="3322\B6\AF\CC\AC\D3\F2\C3\FB" disabled=no interval=10m name=\
    3322DNS on-event=":local ednsuser \"username\"\r\
    \n:local ednspass \"userpassword\"\r\
    \n:local ednshost \"username.3322.org\"\r\
    \n:local ednsinterface \"pppoe-out1\"\r\
    \n:local members \"members.3322.org/dyndns/update\?system=dyndns\"\
    \r\
    \n#:local members \"members.dyndns.org/nic/update\?\"\r\
    \n:local status\r\
    \n:local status [/interface get [/interface find  name=\$ednsinterface] ru\
    nning]\r\
    \n:if (\$status!=false) do={\r\
    \n:local ednslastip [:resolve \$ednshost]\r\
    \n:if ([ :typeof \$ednslastip ] = nil ) do={ :local ednslastip \"0\" }\r\
    \n:local ednsiph [ /ip address get [/ip address find interface=\$ednsinter\
    face ] address ]\r\
    \n:local ednsip [:pick \$ednsiph 0 [:find \$ednsiph \"/\"]]\r\
    \n:local ednsstr \"&hostname=\$ednshost&myip=\$ednsip\"\r\
    \n:if (\$ednslastip != \$ednsip) do={/tool fetch url=(\$members . \$ednsst\
    r) mode=http user=\$ednsuser password=\$ednspass dst-path=\$ednshost\r\
    \n:delay 2\r\
    \n:local result [/file get \$ednshost contents]\r\
    \n:log info (\$ednshost . \" \" .\$result)\r\
    \n/file remove \$ednshost ;\r\
    \n}\r\
    \n}\r\
    \n" policy=reboot,read,write,policy,test,sniff,sensitive start-date=\
    jan/01/1970 start-time=00:00:00

评分

参与人数 1 +1 收起 理由
duosole + 1 赞一个!

查看全部评分

发表于 2014-8-5 20:05:09 | 显示全部楼层
好像很复杂呀 o(∩_∩)o
发表于 2014-8-5 20:51:23 | 显示全部楼层
changeip也可以,不过现在申请过程比原来麻烦了。
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2024-5-4 18:08 , Processed in 0.090937 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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