Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lydanne/ddns-for-nodejs
DDNS For NodeJs
https://github.com/lydanne/ddns-for-nodejs
Last synced: 6 days ago
JSON representation
DDNS For NodeJs
- Host: GitHub
- URL: https://github.com/lydanne/ddns-for-nodejs
- Owner: Lydanne
- License: gpl-3.0
- Created: 2019-07-19T01:47:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T02:05:05.000Z (over 5 years ago)
- Last Synced: 2024-08-10T07:48:15.523Z (3 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DDNS For NodeJs
[GIT仓库](https://github.com/holleworldabc/ddns-for-nodejs.git)
## 引言
DDNS For NodeJs 是使用nodejs实现的DDNS的工具,通过腾讯云API实现的动态域名解析。
解决在一些情况下IP地址不停更换的问题。## 适用
- 家庭宽带的ip变化## 准备
- 安装NODEJS
- 安装pm2
- 腾讯云的域名## 配置文件
```js
//config.js
module.exports = {
SecretId:"",
SecretKey:"",
SignatureMethod:"HmacSHA256", //只支持HmacSHA256与HmacSHA1
domain:"", //域名 eg:test.com
subDomain:"",//子域名 eg:web
recordType:"A",
recordLine:"默认",
network:"ppp0" //表示网卡的名称,ppp0表示linux宽带拨号默认虚拟网卡
}
```## 启动DDNS
```cmd
git clone https://github.com/holleworldabc/ddns-for-nodejs.git
cd ddns-for-nodejs
pm2 start app.js --name DDNS
```## 停止DDNS
```cmd
pm2 stop DDNS
```
## 开机自启
```cmd
pm2 save
pm2 startup
```## 结束
有问题可以回复。