Script for Mikrotik Terminal

/system script add name=noipupdate source="##############Script Settings###############\ ###\r\ \n\r\ \n:local NOIPUser \"username\"\r\ \n:local NOIPPass \"password\"\r\ \n:local WANInter \"ether1\"\r\ \n\r\ \n###############################################\r\ \n\r\ \n:local NOIPDomain \"noiphostname\"\r\ \n\r\ \n:local IpCurrent [:resolve myip.opendns.com server=8.8.8.8];\r\ \n:put \$IpCurrent\r\ \n\r\ \n:if ([:resolve \$NOIPDomain] != \$IpCurrent) do={\r\ \n /tool fetch mode=http user=\$NOIPUser password=\$NOIPPass url=\"http://dynupdate.no-ip.com/nic/update\\3Fhostname=\$NOIPDomain&myip=\$Ipcurrent\" \ keep-result=no\r\ \n :log info \"NO-IP Update: \$NOIPDomain - \$IpCurrent\"\r\ \n}\r\ \n\r\ \n"

Comments

Popular posts from this blog

How To Enable FastTrack MikroTik Script

🚨 Stop paying $150/hour trainer. Claude can now architect your entire body transformation for $0. Here are 12 prompts to build a pro-level gym plan, automate your progress, and overhaul your physique in 90 days. (save this before it’s gone)

🚨 Stop paying $150/hour trainer. Claude can now architect your entire body transformation for $0. Here are 12 prompts to build a pro-level gym plan, automate your progress, and overhaul your physique in 90 days. (save this before it’s gone)