New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

netlify-record-updater

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-record-updater

A remote record updater for Netlify DNS

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

netlify-record-updater

A remote record updater for Netlify DNS that allows you to update your A records with a single command. This is useful if you want to keep your 'A' DNS record up to date with a dynamic IP address.

For example if you have a server at home and want to acces it, you can access it with home.mydomain.com if you run this script on your home machine (for example a raspberry pi) every X minutes using CRON.

CLI Usage

Installation

npm install -g netlify-record-updater

or

yarn add -g netlify-record-updater

To update the record using the current public IP:

netlify-record-updater home.test.com <NETLIFY_API_TOKEN>

To update the record using a custom IP:

netlify-record-updater home.test.com <NETLIFY_API_TOKEN> --ip "1.2.3.4"

Replace <NETLIFY_API_TOKEN> by your Netlify API token (Personal Token).

For help:

netlify-record-updater --help

ES Module Usage

Installation

npm install netlify-record-updater

or

yarn add netlify-record-updater
import { updateRecord } from "netlify-record-updater";

updateRecord("home.test.com", "<NETLIFY_API_TOKEN>");
// or
updateRecord("home.test.com", "<NETLIFY_API_TOKEN>", "1.2.3.4");

Publish

yarn publish

Keywords

netlify

FAQs

Package last updated on 23 Aug 2022

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