@oawu/ddns

1.0.7 • Public • Published

OA's Node DDNS

給予我的 IP 一個漂亮的名稱吧 DDNS 🌐

說明

目前只支援 Cloudflare,主要是將目前對外的網際網路 IP 更新至 DNS 服務平台上。

安裝

npm install @oawu/ddns

使用

  1. 更新
  const DDNS = require('@oawu/ddns')
  const cloudflare = DDNS.Cloudflare('auth_token', 'domain', ['sub'])

  // 第二參數 是否顯示 log
  cloudflare.update((error, data) => {
    console.error(error, data);
  }, true)
  1. 監控
  const DDNS = require('@oawu/ddns')
  const cloudflare = DDNS.Cloudflare('auth_token', 'domain', ['sub'])

  DDNS.Watch(cloudflare, 1000)

Dependents (0)

Package Sidebar

Install

npm i @oawu/ddns

Weekly Downloads

7

Version

1.0.7

License

MIT

Unpacked Size

14.4 kB

Total Files

9

Last publish

Collaborators

  • oawu