Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xadillax/dpdd
Dynamic Domain for DNSPod.
https://github.com/xadillax/dpdd
Last synced: 5 days ago
JSON representation
Dynamic Domain for DNSPod.
- Host: GitHub
- URL: https://github.com/xadillax/dpdd
- Owner: XadillaX
- License: mit
- Created: 2016-04-06T14:55:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-03T03:12:01.000Z (4 months ago)
- Last Synced: 2024-11-01T09:51:34.885Z (12 days ago)
- Language: JavaScript
- Size: 405 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Dynamic Domain for DNSPod
### Installation
```sh
$ [sudo] npm install -g dpdd
```### Usage
```
Usage: dpdd [options]Options:
-c FILE, --config FILE the config file path [/Users/xadillax/.dpddrc]
-t TOKEN, --token TOKEN the API token
-l LANG, --remote-lang LANG remote server language [cn]
-d DOMAIN, --domain DOMAIN the domain to be loaded
-s SUB, --subdomain SUB the subdomain to be run
-i MILLISECOND, --interval MILLISECOND the dynamic domain interval (ms) [30000]
-g GETTER, --ip-getter GETTER specify an IP getter [CHINAZ]
```You may specify a configuration file via `-c` options. Or just pass configuration arguments from the command line.
If you have specified a configuration file, it's format should be a JSON object or an array.
```json
{
"token": "token_id,token",
"domain": "your.domain.com",
"subdomains": [
"@",
"www",
"and.so.on"
]
}
```or
```json
[{
"token": "token_id,token",
"domain": "your.domain.com",
"subdomains": [
"@",
"www",
"and.so.on"
]
}, {
"token": "token_id,token",
"domain": "your.domain.com",
"subdomains": [
"@",
"www",
"and.so.on"
]
}]
```### API
If you want to use `dpdd` as a package in your own project, you should require it at first.
```javascript
const dpdd = require("dpdd");
```The specifications of API, and details not mentioned in README, would be referenced at [API document](http://blog.xcoder.in/dpdd/doc).
### Contribute
You're welcome to make pull requests!
「雖然我覺得不怎麼可能有人會關注我」