Automated Dynamic DNS Updates with n8n
detail.loadingPreview
This n8n workflow automates dynamic DNS updates, ensuring your domain always points to your current public IP address. It checks for IP changes periodically and updates your DNS records accordingly.
About This Workflow
This n8n workflow provides a robust solution for managing dynamic DNS (DDNS) by automatically updating your domain's IP address. The workflow is triggered at a set interval (every 15 minutes) to check for changes in your public IP address. It intelligently compares the current IP with previously recorded IPs, only proceeding with an update if a change is detected. It then iterates through a predefined list of subdomains, sending the necessary update requests to your DNS provider (in this case, simulated for Namecheap). This ensures your services remain accessible even when your IP address fluctuates, eliminating manual intervention and potential downtime.
Key Features
- Automated IP Monitoring: Regularly checks your public IP address for changes.
- Intelligent Change Detection: Only updates DNS records when your IP address has actually changed.
- Subdomain Management: Supports updating multiple subdomains associated with your domain.
- Configurable Trigger: Easily adjust the frequency of IP checks (default: every 15 minutes).
- Extensible to Various Providers: The HTTP Request node can be adapted for different DDNS service APIs.
How To Use
- Cron Node: Configure the
Cronnode to set the desired interval for checking your public IP address (e.g.,every 15 minutes). - Get Public IP address Node: This node is pre-configured to fetch your current public IP from
api.ipify.org. Ensure this endpoint is accessible. - Checks IP if new Node: This function node stores the last known IP address and compares it with the current one. If the IP is new, it passes the item to the next node.
- yourdomain.com Node: Replace
yourdomain.comwith your actual domain andyour-namecheap-ddns-passwordwith your Namecheap DDNS password in theSetnode'svaluesparameter. - subdomains Node: This function node defines a static list of subdomains to be updated. Modify
subdomain1,subdomain2,subdomain3as needed. - Loops trough Subdomain list Node: This function node iterates through the list of subdomains provided by the previous node.
- Send data to Namecheap Node: This
HTTP Requestnode is configured to send the update request to Namecheap's dynamic DNS service. Ensure the URL and parameters correctly match your DNS provider's API documentation. Thehostparameter will dynamically insert the subdomain from the preceding node, andipwill use the newly detected public IP.
Apps Used
Workflow JSON
{
"id": "83692c7f-7655-4f7e-88be-1364ededee9e",
"name": "Automated Dynamic DNS Updates with n8n",
"nodes": 13,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 83692c7f-7655...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.