//------------------------------------------------------------------- //-------------------------------------------------------------------
MikroTik DDNS without static IP

How to Set Up MikroTik DDNS for Home Internet Without a Static IP

Most home internet providers change your IP address every few days or every time your modem restarts. This makes it very hard to connect to your home network from the outside. If you have security cameras, a home server, or a VPS, you will lose connection as soon as your ISP changes your public IP. Setting up a MikroTik DDNS without static IP helps you fix this problem forever.

Dynamic DNS (DDNS) is a service that links your changing Internet IP address to a permanent domain name. Instead of trying to guess your new IP address numbers, you simply type a name like myhome.mynetname.net into your app or browser. The router updates this name in the background whenever your IP changes.

In this complete guide, you will learn exactly how to set up a MikroTik DDNS without static IP.

Why You Need a Dynamic Domain Name System

Before we start, let us see why you need a MikroTik DDNS without static IP for your home or small business network. Buying a fixed IP from your internet company costs extra money every month, and many providers do not even offer them to normal home users.

Using a dynamic DNS solves many daily networking tasks, including:

  • Remote Access: You can log into your router settings from anywhere in the world using WinBox or WebFig.
  • Security Cameras: You can view your home CCTV system or NVR from your mobile phone.
  • Home Labs and File Sharing: You can reach your home Network Attached Storage (NAS) or testing servers securely.
  • VPN Tunnels: A MikroTik DDNS without static IP gives you a fixed name so your phone or laptop can always find your home router to establish a secure VPN tunnel.

How to Set up MikroTik DDNS without Static IP

There are two main ways to solve this on RouterOS:

  1. The first method uses the free service built directly into the router.
  2. The second method uses a custom third-party provider like No-IP, which is useful if the built-in option is blocked by your internet provider.

Method 1: Using MikroTik IP Cloud

The easiest method to configure a MikroTik DDNS without static IP is the IP Cloud. MikroTik includes a free service for all its routers, which gives you a domain name based on the serial number of your device.

Step-by-Step Setup using WinBox:

  1. Open WinBox and log in to your router.
  2. On the left menu, click on IP and then click on Cloud.
  3. A new window will open. Check the box that says DDNS Enabled.
  4. Check the box that says Update Time. This is a great bonus feature that keeps your router’s clock accurate.
  5. Click the Apply button.
  6. Look at the box named DNS Name. You will see a web address that looks like serialnumber.sn.mynetname.net. Copy this name and save it.
  7. Click OK to close the window.

Step-by-Step Setup using Terminal:

If you prefer using the command line, you can do this in just one step. Open a New Terminal in WinBox and type this command:

/ip cloud set ddns-enabled=yes update-time=yes

To see your new domain name in the terminal, run this command:

/ip cloud print

The router will output your details. Look for the dns-name line. You now have a free MikroTik DDNS without static IP ready to use. The router will automatically check your internet connection and update the name if the IP changes.

Method 2: Using a custom DDNS like No-IP

Sometimes, you need a custom MikroTik DDNS without static IP using No-IP or another provider. This usually happens because some internet providers block the MikroTik Cloud servers. If the first method stays stuck on “updating…” and never shows an IP, you must use a custom script.

Step 1: Create a Free No-IP Account

  • Go to the No-IP website and create a free account.
  • Create a new Hostname, for example, myhomerouter.ddns.net.
  • Save your username, your password, and your new hostname.

Step 2: Add the Update Script in RouterOS

MikroTik does not have a native menu for No-IP, so we will create a simple script to do the job.

  1. Open WinBox, go to System, and click on Scripts.
  2. Click the blue + button to add a new script.
  3. Name the script No-IP-Update.
  4. Check all the policy boxes, read, write, policy, test, etc.
  5. Paste the following code into the large text box:
:local noipuser "your_username_here"
:local noippass "your_password_here"
:local noiphost "myhomerouter.ddns.net"
:global previousIP

:local currentIP [/tool fetch url="http://ipecho.net/plain" as-value output=user];
:set currentIP ($currentIP->"data");

:if ($currentIP != $previousIP) do={
    /tool fetch url="http://dynupdate.no-ip.com/nic/update?myip=$currentIP&hostname=$noiphost" user=$noipuser password=$noippass mode=http keep-result=no;
    :set previousIP $currentIP;
    :log info "No-IP DDNS updated. New IP is $currentIP";
} else={
    :log info "No-IP DDNS: IP has not changed.";
}

Make sure you change the username, password, and hostname in the top three lines to match your No-IP account. Click OK to save. This script makes your MikroTik DDNS without static IP run smoothly by only updating when a change actually happens. This stops No-IP from blocking your account for sending too many requests.

Step 3: Run the Script Automatically

The script needs to run every few minutes to catch any IP changes.

  1. Go to System and click on Scheduler.
  2. Click the blue + button.
  3. Name it Run-No-IP.
  4. Set the Interval to 00:05:00, this means 5 minutes.
  5. In the “On Event” box, type the exact name of your script: No-IP-Update.
  6. Click OK.

This scheduler ensures your MikroTik DDNS without static IP stays updated in the background without you having to do anything manually.

Verify MikroTik DDNS without Static IP Setup

It is time to test if your MikroTik DDNS without static IP works correctly. You can do this from a Windows computer.

  • Open the Command Prompt on your computer.
  • Type ping your DNS name (replace this with your actual MikroTik Cloud or No-IP name) and press Enter.
  • The screen will show the IP address it found for that name.
  • Go to Google and search what is my IP. If the IP on Google matches the IP from your ping test, your setup is perfectly configured.

Troubleshooting Broken Access After an IP Change

Even if the setup is correct, you might still lose access to your network. Here are the most common reasons why.

1. You are behind CGNAT: CGNAT is the biggest reason your DDNS might fail. To save money, many internet providers make hundreds of users share a single public IP address instead of giving you your own.

To check for this, go to WinBox, click IP, then Addresses. Look at your WAN interface IP. If it starts with 100.64.x.x up to 100.127.x.x, you have CGNAT.

In this case, DDNS will not work for incoming connections because you do not control the main router at the internet company. You will need a VPS to bypass this block.

2. Hardcoded IP Addresses in Firewall Rules: Using old IP addresses in your settings will break your connection. For example, if you typed your old IP numbers into a WireGuard Endpoint box, the tunnel will fail when your IP changes. Always use your new DDNS domain name instead of numbers.

3. NAT Loopback Missing: If you cannot reach your cameras on home Wi-Fi but mobile data works, your router is missing a Hairpin NAT rule. Always use an external 4G or 5G network to test your new DDNS setup.

4. Bridging to Remote Access and VPNs: A MikroTik DDNS without static IP makes setting up a VPN easy. With RouterOS v7, you can use WireGuard for the fastest connection. Just type your DDNS name into your phone’s VPN app, and it will always find your home network.

If your internet has CGNAT or you want to hide your home IP, renting a cloud server is the best fix. Learn how to bypass these blocks in our guide on how to set up MikroTik WireGuard on a VPS.

Conclusion

Setting up a MikroTik DDNS without static IP ensures you never lose remote access. Whether you use the built-in Cloud feature or a No-IP script, these steps keep your home server and VPN reachable every time your IP address changes.

We hope you enjoy this guide. You can get a fixed public IP and secure your VPN tunnel with a PerLod MikroTik VPS plans.

For further reading:

MikroTik BGP Configuration in RouterOS v7

FAQs

Is the MikroTik Cloud feature free to use?

Yes. The built-in IP Cloud feature is completely free for all RouterBOARD devices and licensed CHR installations. It does not require any monthly fees.

Why does my DNS name not update instantly after my IP changes?

DNS records have a TTL setting. It usually takes a few minutes for internet servers around the world to clear their old memory cache and learn your new IP address. Wait 5 to 10 minutes after a change.

How do I check if my MikroTik No-IP script is running?

Open WinBox, go to Log on the left menu. If you copied our script correctly, you will see a message in the logs every time the IP changes and successfully updates the No-IP servers.

Post Your Comment

PerLod delivers high-performance hosting with real-time support and unmatched reliability.

Contact us

Payment methods

payment gateway
Perlod Logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.