dpdd

0.1.3 • Public • Published

Dynamic Domain for DNSPod

Installation

$ [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.

{
    "token": "token_id,token",
    "domain": "your.domain.com",
    "subdomains": [
        "@",
        "www",
        "and.so.on"
    ]
}

or

[{
    "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.

const dpdd = require("dpdd");

The specifications of API, and details not mentioned in README, would be referenced at API document.

Contribute

You're welcome to make pull requests!

「雖然我覺得不怎麼可能有人會關注我」

Readme

Keywords

Package Sidebar

Install

npm i dpdd

Weekly Downloads

2

Version

0.1.3

License

MIT

Last publish

Collaborators

  • xadillax