Socket
Socket
Sign inDemoInstall

cloudflare-dynamic-dns

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cloudflare-dynamic-dns

Updates a Cloudflare DNS address record with an IP address or hostname


Version published
Weekly downloads
5
increased by66.67%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.1 ##

  • Bug fixes

Readme

Source

cloudflare-dynamic-dns

Build Status npm version

Overview

cloudflare-dynamic-dns is a Node.js module that updates a particular Cloudflare DNS record with an IP address, creating it if it does not exist.

Installation

The easiest way to install cloudflare-dynamic-dns is using npm:

npm install cloudflare-dynamic-dns

You can also build cloudflare-dynamic-dns from source using gulp:

git clone https://github.com/michaelkourlas/node-cloudflare-dynamic-dns.git
npm install
gulp

You'll need to install gulp first if you don't have it:

npm install -g gulp

You can then copy the folder into your node_modules directory.

The default target will build the production variant of cloudflare-dynamic-dns, run all tests, and build the documentation.

You can build the production variant without running tests using the target prod. You can also build the development version using the target dev. At the moment, the only difference between the two is that the development version includes source maps.

Usage

The documentation for the current version is available here.

You can also build the documentation using gulp:

gulp docs

Examples

The following example illustrates the basic usage of cloudflare-dynamic-dns:

var ddns = require("cloudflare-dynamic-dns");

var options = {
    auth: {
        email: "<email>",
        key: "<key>"
    },
    recordName: "foo.bar.com",
    zoneName: "bar.com"
};

ddns.update(options, function(err) {
    if (err) {
        console.log("An error occurred:");
        console.log(err);
    } else {
        console.log("Success!");
    }
});

Additional examples can be found in the examples directory.

Tests

cloudflare-dynamic-dns includes a set of tests to verify core functionality. You can run the tests using gulp:

gulp test

The test target builds the production variant of cloudflare-dynamic-dns before running the tests. The test-prod target does the same thing, while the test-dev target builds the development variant first instead.

License

cloudflare-dynamic-dns is licensed under the Apache License 2.0. Please see the LICENSE.md file for more information.

Keywords

FAQs

Last updated on 23 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc