npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@linkedmink/node-route53-dynamic-dns

v1.1.0

Published

Background process that updates AWS Route 53 DNS address records whenever the public IP of the hosting environment changes

Downloads

52

Readme

Node Route53 Dynamic DNS

Build Status NPM Version Docker Image Size

This is a NodeJS background process that updates AWS Route 53 DNS address records whenever the public IP of the hosting environment changes. This can be useful for home or small business networks where an ISP doesn't issue a static IP.

  • Supports multiple records in multiple zones
  • Supports IPv6
  • Supports containers (tested with Docker)
  • Simple HTTP server
    • Can be used for health checks
    • Outputs current IP and managed records

Prerequisites

  • NodeJS >= 18 (Tested)
  • Hosted Zones with AWS Route 53

Usage

The README will focus on running the app as a user (see Additional Documentation for build and dev info)

Base Package

You can run the npm package as a self-contained executable. Install the package globally.

npm install -g @linkedmink/node-route53-dynamic-dns

The app can be configured using a .env file in the current working directory. See the template.env for defaults and comments about the allowed options. Alternatively you can use environment variables with names matching the keys in template.env.

Configure an AWS IAM user with access to the zones and records you wish to update. If you have a user with permissive access (an admin), you can run the bundled script to geneate a restrictive access policy for the specific zones and records you want to update. Set AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY_SECRET to a user with access, and change the target records in HOSTNAMES_TO_UPDATE.

npx node-route53-dynamic-dns iam-policy

After the configuration has been set, execute the packages main command.

npx node-route53-dynamic-dns

Containers

You can run the app on any container runtime like Docker and configure it using environment variables and/or mounted files. A Docker image has been built and published to Docker Hub. An example configuration docker-compose.yml file is included in the repo. It has configuration to mount the secrets.env as Docker secret. Copy the files and edit them as needed (see template.env).

cp docker/{docker-compose.yml,secrets.env} /my/docker/config/path

# Change AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY_SECRET, and HOSTNAMES_TO_UPDATE at minimum
cd /my/docker/config/path
nano docker-compose.yml
nano secrets.env

# Test out the configuration
sudo docker compose up
# Run the app in the background
sudo docker compose up -d

Additional Documentation

  • Alternative Usage: Some additional examples of running the app on various systems
  • Developing: You can modify, build, and run the app as you see fit. If you have a useful modification or fix, consider contributing.