Automate NameCheap DDNS Updates with n8n Workflow

Tired of manually updating your dynamic DNS on NameCheap? This n8n workflow automates the process, checking your public IP every 15 minutes and updating your subdomains only if the IP changes, saving you time and avoiding errors.
cron
function
httpRequest
+1
Workflow Identifier: 1590
NODES in Use: Cron, Function, Set, HTTP Request
Automate NameCheap DDNS with n8n and HTTP Request

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow checks your public IP every 15 minutes and updates NameCheap dynamic DNS only if your IP has changed.

It stops repeated updates if the IP is still the same.

You get your subdomains always pointing to the correct IP without manual work.

The workflow loops through your subdomains and updates each one using NameCheap’s API.

It stores the last IP to avoid unnecessary updates.


Tools and Services Used

  • n8n automation platform: To build and run the workflow.
  • NameCheap dynamic DNS API: To update DNS records automatically.
  • ipify.org API: To get the public IP address in JSON format.

Inputs, Processing Steps, and Outputs

Inputs

  • Your current public IP address fetched from ipify API every 15 minutes.
  • Your domain name and dynamic DNS password for NameCheap.
  • List of subdomains to update.

Processing Steps

  • Fetch public IP with HTTP Request node.
  • Check if IP changed since last check using Function node and workflow static data.
  • If IP is new, pass domain, password, and subdomains forward.
  • Loop through subdomains with Function node creating individual items.
  • Send update requests to NameCheap for each subdomain using HTTP Request node.
  • Save new IP in static data to compare on next run.

Outputs

  • Updated DNS records on NameCheap for each subdomain with new IP.
  • HTTP 200 success responses indicating successful DNS update.
  • Idle workflow runs with no updates if IP has not changed.

Beginner Step-by-Step: How to Use This Workflow in n8n

Import the Workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open your n8n editor.
  3. Use Import from File option to load the workflow JSON file.

Configure Credentials and Variables

  1. Add your NameCheap dynamic DNS password and domain name in the yourdomain.com Set node.
  2. Update the subdomains list inside the subdomains Function node to your real subdomains.
  3. Check the Send data to Namecheap HTTP Request node URL uses proper expressions referencing correct nodes.
  4. If using self-host n8n, ensure your server has internet access to call external APIs like ipify and NameCheap.

Test and Activate Workflow

  1. Run the workflow manually once to check it fetches IP and updates your NameCheap DDNS.
  2. Review execution logs for success, especially HTTP 200 responses from NameCheap.
  3. Activate the workflow toggle to enable scheduled, automatic runs every 15 minutes.

Customization Ideas

  • Add extra subdomains by adding objects in the array inside the subdomains Function node.
  • Change update frequency by changing the minutes in the Cron node.
  • Add notification nodes like Slack or Email after Checks IP if new to get alerts on IP changes.
  • Improve security by using environment variables or n8n credentials to store domain and password.

Troubleshooting Common Issues

  • No IP updates despite IP change: Check if the Checks IP if new node can access workflow static data and the workflow state is preserved.
  • Failed to update NameCheap: Verify API URL format and password are correct in the Send data to Namecheap node.
  • Workflow not triggering: Ensure the Cron node is active and your server time is set correctly.
  • Incorrect subdomain names: Confirm subdomain IDs exactly match your NameCheap DNS hosts in the subdomains node.

Pre-Production Checklist

  • Test the NameCheap DDNS password with direct API calls to confirm validity.
  • Test the Get Public IP address node alone to ensure IP retrieval.
  • Confirm the static workflow data keeps IP between runs.
  • Validate subdomain names are set accurately.
  • Run the entire workflow once and check for 200 OK responses.

Deployment Guide

After testing, turn your workflow switch to active in n8n.

The workflow runs every 15 minutes automatically, keeping your DNS updated only when IP changes.

Monitor workflow execution in dashboard for failed runs or errors.

Add notification nodes for alerts on errors or IP updates as needed.

Hosting on a VPS or server? Use self-host n8n for reliable uptime and internet access.


Automate NameCheap DDNS with n8n and HTTP Request

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

Yes, any API that returns JSON with an ‘ip’ key can be used by changing the URL in the ‘Get Public IP address’ node.
No, ipify and NameCheap DDNS API requests are generally free under normal use conditions.
By default, it is stored in the ‘yourdomain.com’ Set node. For better security, use n8n credentials or environment variables.
Add new subdomain objects with ‘id’ values inside the array in the ‘subdomains’ Function node.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.