0.1.3 • Published 10 years ago

dpdd v0.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

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!

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

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago