All posts

Automate NodeRings servers and DNS with n8n

The NodeRings community node for n8n creates and manages virtual machines, DNS, SSH keys and firewalls, and its trigger starts a workflow when a server appears, gets an IP or changes state. We tested every operation against production.

Written by NodeRings Inc.

NodeRings Inc. writes these notes. The company runs the marketplace and the agent that stays on the provider’s side of the hypervisor.

We clicked Execute in n8n and a new server called web-1 appeared in our NodeRings account, already with a public IP. A second workflow, two nodes long, saw that server and wrote web-1.shiftsquid.com into our NodeRings DNS zone. A few seconds later the NodeRings nameserver answered for the name. Nobody opened the console, and nobody copied an IP address anywhere.

That's the NodeRings node for n8n, the open-source workflow tool. This post shows what the node can do, how to set it up, and what happened when we ran every operation against the production API.

From installing the community node to ordering a server, giving it a DNS name, power-cycling it and cleaning up, all from n8n against the production API, with narration and subtitles. The wait steps in the power-cycle workflow are shown at 10× speed.

What's in the package

The package n8n-nodes-noderings adds two nodes to n8n.

NodeRings is the action node: 47 operations across 10 resources. It can also be used as a tool by n8n's AI agents.

ResourceWhat you can do
Virtual MachineCreate, get, list, start, stop, restart, reinstall, delete, update tags, attach or detach a firewall ruleset
DNS ZoneCreate, get, list, delete
DNS RecordCreate or update a record set, list, delete
SSH KeyCreate, get, list, delete
Firewall RulesetCreate, get, list, rename, delete
SnapshotCreate, get, list, restore, delete
BackupGet, list, restore, delete
Cloud-Init User DataCreate, get, list, update, delete saved cloud-init
TagList every tag used on your servers
MarketplaceRegions, plan codes, offers for a plan, plan details, the distro catalog

NodeRings Trigger starts a workflow on one of three events:

EventFires when
New Virtual MachineA server shows up that wasn't there on the last check
IP Address AssignedA server gets its first public IP, which is the moment it becomes reachable
Status ChangedA server starts, stops, restarts, reinstalls or is deleted. The output includes the previous status.
n8n node picker showing the NodeRings node, installed via npm, with Actions (47) and the first groups listed: backup actions (delete, get, get many, restore a backup), cloud-init user data actions and DNS record actions.
Search for NodeRings in the node picker and every action is listed by resource.

Setting it up

1. Install the package. On self-hosted n8n, open Settings → Community Nodes → Install and enter n8n-nodes-noderings. On n8n Cloud it shows up once n8n has verified it.

2. Create a token. In the NodeRings console go to Organization → Access Control → Service accounts and create a service account. Give it only the permissions your workflows need. For the DNS example in this post, DNS access and read access to virtual machines are enough.

3. Add the credential. In n8n, create a NodeRings API credential and paste the token. Organization ID is optional: leave it empty to work in the token's own organization. n8n's Test button checks the token against the API.

The NodeRings API credential dialog in n8n with the API Token field filled and masked, an empty Organization ID field and the Base URL https://api.noderings.com.
Three fields, and only the token is required.

Creating a server

A Create operation on Virtual Machine orders a real server, billed from that moment, so the node asks for exactly what the API needs and nothing it would have to guess:

The Create web server node open in n8n: Virtual Machine, Create, hostname web-1, a plan ID and region ID, distro Ubuntu 26.04 LTS, access method SSH Keys with the key nr-svm-seq, tags web and production. The output table shows the new machine web-1 with status OPERATION_STATUS_STARTED and its public IPv4 address.
The output is the new server. Simplify (on by default) keeps it to the ten fields you usually want.

In our run the response came back with the server already started and holding its IPv4 address. That isn't guaranteed on every plan, which is why the trigger has an IP Address Assigned event.

Giving every new server a DNS name

This is the workflow from the recording, and it's in the repository as examples/dns-for-new-vms.json:

  1. NodeRings Trigger, event IP Address Assigned, checking every minute.
  2. NodeRings, DNS Record → Create or Update, in your zone, with name {{ $json.hostname }} and value {{ $json.ipv4 }}.
An n8n canvas with two NodeRings nodes, both green after a successful run: New server has an IP (IP address assigned) connected to Create DNS record (upsert: dnsRecord), with one item passing between them.
Two nodes. Every server you create, from n8n, the console, Terraform or anything else, gets a DNS name.
The Create DNS record node open. The input on the left is the trigger's output for web-1 with its ID, status, IPv4 and IPv6 addresses, region Ashburn, provider and the tags web and production. The parameters use the expressions $json.hostname and $json.ipv4 in the zone shiftsquid.com. The output on the right is the record web-1, type A, TTL 300, with the server's address.
The trigger hands over the whole server, so any field can go into the next node.

Afterwards we asked the NodeRings nameserver directly with dig @ans1.nrings.io web-1.shiftsquid.com, and it returned the new address. Public lookups only reach the zone once the domain is delegated to NodeRings. Our test zone isn't delegated, so we asked the nameserver itself.

Create or Update sets every value for a name and type, so running the workflow twice doesn't stack up duplicate records. Swap the trigger for Status Changed and filter on OPERATION_STATUS_DELETED, and the same idea removes the record when a server goes away.

How the trigger works

NodeRings doesn't send webhooks for server events, so the trigger polls the API on n8n's Poll Times schedule. Every minute is the shortest interval and a sensible default. The first check after you activate a workflow only records what already exists, so switching a workflow on doesn't flood you with events for servers you've had for months. Fetch Test Event in the editor returns your newest server, so you can build the next node against real data.

The NodeRings Trigger settings: credential, Poll Times set to Every Minute, a note that NodeRings has no webhooks for these events so the trigger checks the API on the Poll Times schedule and the first check only records what exists, and Event set to IP Address Assigned.
One trigger node, three events.

With three trigger workflows active, we created a server from n8n, stopped it, started it again and deleted it. Every event arrived on the next poll:

What we did (UTC)Trigger eventOutput
Created n8n-demo (00:47:21)New Virtual Machine, 00:47:40n8n-demo, status created
IP Address Assigned, 00:47:58the server's IPv4 address
Server finished installingStatus Changed, 00:48:56created → started
Stopped it from n8n (00:48:50)Status Changed, 00:49:55started → stopped
Started it from n8n (00:50:10)Status Changed, 00:50:55stopped → started
Deleted it from n8n (00:51:26)Status Changed, 00:51:55started → deleted

What we tested

Every operation in the table above ran against the production API in n8n 2.49, apart from backup restore and reinstall, which would have overwritten a disk. Everything we created was deleted again afterwards.

AreaChecked
CredentialThe real token passes n8n's credential test; a wrong one fails with "Unauthorized"
Reads20 list and get operations, including Return All, Limit, Simplify and the status filter
WritesSSH key create and delete; DNS A and TXT records upserted, listed, deleted; firewall ruleset create, rename, delete; cloud-init create, update, delete; tags added and removed
Server lifecycleCreate, stop, start, snapshot, list snapshots, delete, at the hourly rate of the plan, which came to about a cent
TriggerAll three events, including deletion, as in the table above

The package also has unit tests for the parts with logic in them: paging, the single access method on create, idempotency keys, and the trigger's memory between checks. It passes n8n's own community-node linter.

What it can't do

The node only offers what the NodeRings API supports. It can't resize a server, boot from a custom image, attach block volumes or create load balancers. Snapshot and backup restores roll the same server back rather than creating a new one. And because the trigger polls, events arrive up to a minute late.

Get it

The node is open source under the MIT license: github.com/noderings/n8n-nodes-noderings. Install n8n-nodes-noderings from Settings → Community Nodes. If you'd rather manage servers from code, the same API is behind our Terraform provider, Ansible collection and Pulumi package. If you want n8n to watch your servers' health rather than their lifecycle, see Prometheus service discovery.