1 Star 0 Fork 0

HIK / java-dnspod-ddns

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

java-dnspod-ddns

介绍

JAVA动态域名解析脚本(基于 Dnspod API)

软件架构

JDK8+,Hutool

使用说明

  1. 🎁 获取代码
    1. IDEA克隆代码自行打包
    2. 或者直接下载已打包jar文件
  2. ✒ 配置 ddns.setting 文件,请根据提示配置各项信息

    DNSPod 的 IDTOKEN 获取方法:https://docs.dnspod.cn/account/5f2d466de8320f1a740d9ff3/

由于本脚本使用的是 JAVA 编写的,所以你必须安装Java环境,直接执行,首次运行会在jar包所在目录生成ddns.setting配置文件,配置好重新运行即可。

java -jar java-dnspod-ddns-1.0-SNAPSHOT-jar-with-dependencies.jar

Linux上可用nohup进行后台执行

nohup java -jar java-dnspod-ddns-1.0-SNAPSHOT-jar-with-dependencies.jar &

Linux上关闭使用ps查询到进程号后用kill关闭

ps -ef | grep dnspod
kill -9 [进程号]

定时执行,达到 DDNS 的目的

直接修改ddns.setting中cron表达式

不会cron表达式可百度“在线cron表达式”,很多网站提供在线生成cron表达式

参考

  1. PHP动态域名解析:https://github.com/PrintNow/php-dnspod-ddns

Comments ( 0 )

Sign in for post a comment

About

JAVA动态域名解析脚本(基于 Dnspod API) spread retract
Cancel

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/cwayteam/java-dnspod-ddns.git
git@gitee.com:cwayteam/java-dnspod-ddns.git
cwayteam
java-dnspod-ddns
java-dnspod-ddns
master

Search