找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5770|回复: 5

[k2p] 增加斐讯路由器的ddns服务提供商

[复制链接]
发表于 2018-1-18 21:10 | 显示全部楼层 |阅读模式
斐讯路由器官方固件只支持3322 和花生壳 两家
最近这两家都要实名认证之类的,比较麻烦
所以:

首先需要开启 telnet (请搜索其它教程)

telnet 进去后
vi /usr/lib/ddns/service

可以看到

  1. # This file contains the update urls for various dynamic dns services.
  2. # Column one contains the service name, column two contains the update url.
  3. # within the update url there are 4 variables you can use: [USERNAME],
  4. # [PASSWORD], [DOMAIN] and [IP].  These are substituted for the username,
  5. # password, and domain name specified in the /etc/config/ddns file when an
  6. # update is performed.  The IP is substituted for the current ip address of the
  7. # router.  These variables are case sensitive, while urls generally are not, so
  8. # if you need to enter the same text in the url (which seems very unlikely) put
  9. # that text in lowercase, while the variables should remain in uppercase

  10. #"Dyndns.org"           "http://[USERNAME]:[PASSWORD]@members.dyndns.org/nic/upd
  11. #"changeip.com"         "http://[USERNAME]:[PASSWORD]@nic.changeip.com/nic/updat
  12. #"www.zoneedit.com"             "http://[USERNAME]:[PASSWORD]@dynamic.zoneedit.c
  13. #"free.editdns.net"     "http://dyndns-free.editdns.net/api/dynLinux.php?p=[PASS

  14. #noip is an alias of no-ip, so allow both names for the same service
  15. #"www.no-ip.com"                "http://[USERNAME]:[PASSWORD]@dynupdate.no-ip.co
  16. #"noip.com"             "http://[USERNAME]:[PASSWORD]@dynupdate.no-ip.com/nic/up

  17. #freedns.afraid.org is weird, you just need an update code, for which we use the
  18. #"freedns.afraid.org"   "http://freedns.afraid.org/dynamic/update.php?[PASSWORD]

  19. #### ADD YOURS HERE! ###########################################################
  20. #
  21. # There are TONS of dynamic dns services out there. There's a huge list of them
  22. ################################################################################

  23. # DNS Max and resellers' update urls
  24. #"dnsmax.com"   "http://update.dnsmax.com/update/?username=[USERNAME]&password=[
  25. #"thatip.com"   "http://update.dnsmax.com/update/?username=[USERNAME]&password=[

  26. # Hurricane Electric Dynamic DNS
  27. #"he.net"                "http://[DOMAIN]:[PASSWORD]@dyn.dns.he.net/nic/update?ho

  28. # DNSdynamic.org
  29. #"dnsdynamic.org"       "http://[USERNAME]:[PASSWORD]@www.dnsdynamic.org/api/?ho

  30. # dnsExit.com free dynamic DNS update url
  31. #"dnsexit.com"          "http://www.dnsexit.com/RemoteUpdate.sv?login=[USERNAME]

  32. # OVH
  33. #"ovh.com" "http://[USERNAME]:[PASSWORD]@www.ovh.com/nic/update?system=dyndns&ho

  34. # dns-o-matic is a free service by opendns.com for updating multiple hosts and
  35. # dynamic dns services in one api call. To update all your configured services
  36. # at once, use "all.dnsomatic.com as the hostname.
  37. #"dnsomatic.com" "http://[USERNAME]:[PASSWORD]@updates.dnsomatic.com/nic/update?

  38. # 3322.org
  39. "3322.org"  "http://[USERNAME]:[PASSWORD]@members.3322.org/dyndns/update?system=
复制代码
可以看到一大堆动态域名服务商, #号开头的都是没启用的
例如我要用  he.net 的动态域名 , 就把 #"he.net" "http://[DOMAIN]:[PASSWORD]@dyn.dns.he.net/nic/update?ho  行开头的 #号去掉(输入 i  然后编辑)
然后保存退出(esc  :w:q)




然后就在web 设置页面就出现了新的动态DNS服务提供商了
按照这个方法可以增加任何 DDNS服务提供商,只要该ddns 提供网页更新接口(只支持 GET 方式,不支持 POST。 只支持 http, 不支持 https)

本帖子中包含更多资源

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

×
发表于 2018-1-18 21:24 | 显示全部楼层
带穿透的更好
回复 支持 反对

使用道具 举报

发表于 2018-1-18 22:48 | 显示全部楼层
我更想知道固件中的更新后台脚本在哪里,代码是怎么实现的。楼主可知道?

点评

/usr/lib/ddns/ 里面应该有几个sh脚本文件  详情 回复 发表于 2018-1-18 23:15
回复 支持 反对

使用道具 举报

发表于 2018-1-18 23:15 来自手机 | 显示全部楼层
cherry_cccccc 发表于 2018-1-18 22:48
我更想知道固件中的更新后台脚本在哪里,代码是怎么实现的。楼主可知道?

/usr/lib/ddns/ 里面应该有几个sh脚本文件
回复 支持 反对

使用道具 举报

发表于 2018-1-20 15:16 | 显示全部楼层
好像没看到aliddns和 dnspod
回复 支持 反对

使用道具 举报

发表于 2018-1-20 15:48 来自手机 | 显示全部楼层
怎么增加阿里云啊
回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-16 17:39

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

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