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

@pejulian/simple-route53-ddns

v0.0.18

Published

npm module containing a cron friendly script to get your machine's ip address and update it as a record set in the specified hosted zone in AWS Route53

Downloads

18

Readme

Simple Route53 Dynamic DNS

This node module offers a script that allows you to create/update a record set in your Route53 Hosted Zone with your current IP address.

A use case for this script is to have it invoked via a scheduled task (i.e. crontab) to keep your FQDN updated with the correct and active IP address of your non static IP server.

This effectively gives you a simple Dynamic DNS service that you can use to ensure that your domain/host is always pointing to the correct

Credits

This script is a NodeJS adaptation of a script provided by Anthony Heddings.

Prerequisites

  1. AWS CLI installed and available on your prompt (This script doesn't directly use the CLI, but the CLI is required for setting up your AWS profile configuration on your machine: aws configure)
  2. An iam profile configured that has relevant access to the Route53 service to add/update record sets in a given Hosted Zone
  3. npm installed and available on your path
  4. An active Hosted Zone in AWS Route53

Usage

The easiest way to invoke scripts in this module is via npx.

update-record-set

Gets the current public ip address of your network and creates or updates a record set in the specified Hosted Zone in Route53.

npx @pejulian/simple-route53-ddns update-record-set -h YOUR_HOSTED_ZONE_ID -d YOUR_DOMAIN_NAME_1 YOUR_DOMAIN_NAME_2 [-t RECORD_SET_TYPE -l TTL -p YOUR_IAM_PROFILE -r YOUR_AWS_REGION]

| Option | Required | Description | | ------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------- | | -h --hosted-zone-id | :heavy_check_mark: | The hosted zone in Route53 where the record set will be created/updated | | -d --domain | :heavy_check_mark: | The domain name. Must be a FQDN or subdomain of the root FQDN. | | -i --ip | :x: | The IP address to set as the value of the record set created (NOTE: Setting this will override the internal IP lookup mechanism) | | -t --type | :x: | The DNS record set type to create/update (optional, will use A if not set) | | -l --ttl | :x: | The TTL (optional, will default to 60 seconds if not set) | | -p --profile | :x: | The IAM profile that is configured for use to interact with the target AWS account (optional, will use default if not set) | | -r --region | :x: | The region that the AWS SDK should operate in when running commands (optional, will use ap-southeast-1 if not set) |

The Route53 AWS SDK has a hard limit of 5 concurrent/bulk operations per second per account. Consider running this command in batches if you have more than 5 domains to be updated.