https://bitbucket.org/padavan/rt ... lother-ddns-servers

我仅仅看懂了要建立一个三级目录

1. Disable DDNS-client in WEB-interface

2. Create directory /opt/etc/ddns:

# mkdir /opt/etc/ddns

从步骤3就开始懵逼了。啥意思。。空目录要怎么开始下面步骤3之后的内容

3. In directory /opt/etc/init.d create script S02ddns with this content (you can use this script):

func_start()

{

echo "Start DDNS services"

# insert your custom code below

inadyn --input_file /opt/etc/ddns/inadyn.conf  # start DDNS-service for server DDNS 1

inadyn --input_file /opt/etc/ddns/inadyn2.conf  # start DDNS-service for server DDNS 2

}

func_stop()

{

echo "Stop DDNS services"

# insert your custom code below

killall -q inadyn

}

case "$1" in

start)

func_start

;;

stop)

func_stop

;;

restart)

func_stop

func_start

;;

*)

echo "Usage: $0 {start|stop|restart}"

exit 1

;;

esac

4. In directory /opt/etc/ddns create configuration file(s) inadyn.conf (inadyn2.conf and so on, respectively the number of required records for DDNS-Server). For example, inadyn.conf for service dyndns.com:

dyndns_system dyndns@dyndns.org

update_period_sec 1800 # check for a new IP every 30 minutes

username ****    # login for server dyndns.com

password ****    # password for server dyndns.com

alias ****.dyndns.org    # alias (host name) for server dyndns.com

background

ip_server_name checkip.ns.zerigo.com /

cache_file /opt/etc/ddns/ddns.cache

# log_file /opt/etc/ddns/inadyn.log   # if you want to inadyn recorded their results in own log, uncomment this line, the default will record in the system log

For example, inadyn.conf for service no-ip.com:

dyndns_system default@no-ip.com

update_period_sec 1800 # check for a new IP every 30

username ****    # login for server no-ip.com

password ****    # password for server no-ip.com

alias ****.sytes.net    # alias (host name) for server no-ip.com

background

cache_file /opt/etc/ddns/ddns2.cache

# log_file /opt/home/admin/inadyn.log

You should replace the asterisks on your accounts data

自建服务器如何做ddns,【【【难题制造第一号】】】如何实现自定义DDNS。相关推荐

  1. 自建服务器系列- DDNS配置

    1.环境说明 光猫桥接+路由器拔号的模式 2.DDNS是什么 对于DHCP方式获得的IP,无论对于局域网内来说,还是外网来说,都会有使得IP地址每隔一段时间变化一次,如果想要通过恒定不变的地址访问主机 ...

  2. 慎重决定!从自建服务器到选择阿里云

    上云前序 ​    ​我们公司因为业务需求,需要来服务器托管微信公众号平台.之前我们先是自建服务器,然后就是使用IDC机房托管服务器,后来因为种种原因,最后转到了阿里云上云.很多同学会有疑问,为什么已 ...

  3. 从自建服务器到选择阿里云

    ↑ ↑ ↑ ↑ ↑  提示:CSDN支持浏览目录功能,浏览目录后阅读效果更佳  ↑ ↑ ↑ ↑  ↑ 本文涉及的代码已托管在GitHub中,有兴趣的同学可以浏览 有什么不懂可以浏览一下 上云前序 ​ ...

  4. 自己建服务器 语音盒子_如何自己搭建一个服务器?

    以前不懂服务器是什么,就知道可以搭建网站.后来去阿里云注册了账号,看见学生活动才114一年就买了,配置很垃圾,是对于初学者来说还不错. 想着当时也够傻,没有一点基础,还作死地装了一个linux系统.完 ...

  5. 种子谋定翻身-农民丰收节交易会·万建民:破解卡脖子难题

    种子谋定翻身-农民丰收节交易会·万建民:破解卡脖子难题 新闻中国采编网 中国新闻采编网 谋定研究中国智库网 经信研究 国研智库 国情讲坛 哲商对话 万权采编:"一粒种子可以改变一个世界.种业 ...

  6. 服务器怎么做虚拟空间,服务器怎么做虚拟空间

    服务器怎么做虚拟空间 内容精选 换一换 鲲鹏代码迁移工具是一款可以简化客户应用迁移到基于鲲鹏916/920的服务器的过程的工具.工具仅支持x86 Linux到Kunpeng Linux的扫描与分析,不 ...

  7. 搭建自己的V Rising自建服务器,以及常见的V Rising服务器问题解决方案

    V rising官方服务器经常无法连接,无法和小伙伴玩耍:如何搭建自己的V rising服务器呢?还可以修改掉落倍率,加快游戏进度,搭建自己的私人服务器. 前言 最近V rising这个游戏很火呀,迫 ...

  8. 自建服务器部署WEB网站可公网访问

    文章目录 自建服务器部署WEB网站可公网访问 一.公网IP端口映射到服务器主机或者内网穿透 二.Nginx 反向代理和负载均衡 2.1 windows 10 安装Nginx 2.2 ubuntu18. ...

  9. 自己拥有一台服务器可以做哪些很酷的事情?

    文章目录 自己拥有一台服务器可以做哪些很酷的事情? 为什么选择云服务器 如何选择云服务器 可以做哪些很酷的事情 **个人博客** **个人网盘** **云桌面** **代码库** **自己的邮箱** ...

最新文章

  1. 人工智能实践:TensorFlow笔记学习(八)—— 卷积神经网络实践
  2. springboot打印sql日志_Spring boot 工程,http打印日志太多
  3. 深度学习框架Caffe源码解析
  4. nginx 如何处理请求系列1-Nginx安装
  5. mysql+rownumber的用法_mysql中如何实现row_number
  6. oracle 加全文索引,oracle全文索引的创建和使用
  7. c语言编程运动会分数统计系统报告,独家稿件:定稿运动会分数统计系统设计报告_完整版...
  8. 如何写出高性能SQL语句
  9. 9.28PMP每日一题
  10. 汇编学习笔记(3)-80x86指令集
  11. 找到一个二位数组的鞍点
  12. antd 日期时间选择_Excel最全时间类函数总结,有必要收藏一下哦
  13. Mac使用sdkmanager从官网下载新版android SDK
  14. mcc mnc 运营商对应表_在南非怎么选手机的移动电话运营商?
  15. JavaWeb之HTTP协议
  16. ubuntu不能更新包
  17. 《行为科学统计7e(Statistics for the Behavioral Sciences 10e)》 Introduction to Statistics
  18. 中金:基金投顾试点扩容,买方时代已至
  19. 华为笔试题大全(史上最齐全)
  20. 新手如何自己做网站?

热门文章

  1. js是滚动条滑到固定位置_js滚动到指定位置
  2. html图片gif格式转换,嵌入在HTML文档中的图像格式可以是?
  3. 【愚公系列】2023年06月 网络安全(交通银行杯)-算法漏洞分析
  4. 是平板?还是手机?三星Galaxy Note美图大赏
  5. Swing 给密码框JPasswordField设置显示和隐藏密码功能
  6. 用 Python 进行音乐创作
  7. 程序员称子弹短信存在抄袭,罗永浩回复:感谢知乎蠢萌科学家们!
  8. CloudCompare进行点云标注
  9. 苹果手机 iphone找回方法
  10. FFmpeg学习之七(视音频流缓存)