FlowAlp

Set up MikroTik with Shift DNS

November 19, 2026

Step-by-step: let MikroTik update your Shift DNS hostname automatically.

On RouterOS, a small script and a scheduler call the update address regularly.

You need a hostname and a token with the UPDATE permission. In the values below, replace your-hostname with your hostname and thdns_xxxxxxxx with your token.

Steps

  1. Open a terminal in WinBox (New Terminal) or connect with SSH.
  2. Paste the commands below, with your hostname and token filled in.
  3. The router now calls the update address every 5 minutes. When the address has not changed, nothing is written.
routeros
/system script add name=shiftdns policy=read,write,test source={
  /tool fetch url="https://api.shiftdns.thunderhosting.com/nic/update?hostname=your-hostname" user="your-hostname" password="thdns_xxxxxxxx" mode=https keep-result=no
}
/system scheduler add name=shiftdns interval=5m on-event="/system script run shiftdns"

After saving, trigger an update (or wait a few minutes) and check the hostname in the dashboard. If it does not work, see the troubleshooting article.