Socket
Book a DemoInstallSign in
Socket

dynu-dns

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynu-dns

Update IP of your DNS (dynu.com)

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Dynu-DNS

Updates IP of your dynamic DNS (dynu.com)

Installation

npm i dynu-dns

Usage

Example updating the IPV4 of the domain domain.com.

let dns = new DynuDNS("username", "password");
dns.updateIPOfDomain("domain.com", "145.126.1.0")
    .then((res: ResponseEnum) => {
        console.log("success!")
    })
    .catch((err: ResponseEnum) => {
        console.log("error...")
    });

API

Class DynuDNS

constructor(username, password)

  • username - (string) Username of the dynu account.
  • password - (string) Password of the dynu account. For security reason, you can pass the md5 of your password.

updateIPOfDomain(domain, ipv4): Promise

  • domain - (string) Domain you want to update (without http://).
  • ipv4 - (string) IPV4 you want to set. If 10.0.0.0, it will be replaced by the origin request IPV4.

ResponseEnum

See ResponseEnum.ts for more details.

Keywords

Dynu

FAQs

Package last updated on 08 Apr 2020

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.