<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Обновление No-IP и DNSdynamic]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Обновление No-IP и DNSdynamic форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Fri, 31 Jul 2026 12:06:27 -0400</pubDate>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390165">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			У меня это не работает. Mikrotik находится в режиме моста за роутером провайдера. Mikrotik добавлен в DMZ на роутере провайдера. Я запускаю скрипт, но IP на no-ip не обновляется. routerOS v6.49.10. Для логирования я создал скриптовый лог (с действием: memory), но не вижу ошибок и никаких записей о том, что скрипт что-то сделал. Я также сделал следующее, чтобы проверить, произойдет ли обновление IP на 3.0.3.3: /tool fetch mode=http url=“<noindex><a href="http://myUSERNAME:myPASSWORD@dynupdate.no-ip.com/nic/update?hostname=MYDNSNAME.ddns.net&amp;myip=3.0.3.3" target="_blank" rel="nofollow" >http://myUSERNAME:myPASSWORD@dynupdate.no-ip.com/nic/update?hostname=MYDNSNAME.ddns.net&amp;myip=3.0.3.3</a></noindex>” — но обновления не произошло. Если вставить эту же строку в веб-браузер, IP на сервере NO-IP обновляется на 3.0.3.3. Есть идеи? Я совсем новичок. <br />
			<i>10.08.2024 14:28:00, morph8070.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390165</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390165</guid>
			<pubDate>Sat, 10 Aug 2024 14:28:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390164">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Amm0, спасибо, всё работает. (Но почему ftp — именно такое название, а?) <br />
			<i>23.02.2024 10:17:00, spamdog.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390164</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390164</guid>
			<pubDate>Fri, 23 Feb 2024 10:17:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390163">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Может попробовать добавить политику «ftp». <br />
			<i>08.02.2024 16:46:00, Amm0.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390163</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390163</guid>
			<pubDate>Thu, 08 Feb 2024 16:46:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390162">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			С декабря 2023 года этот скрипт у меня не работает. Устройство: RB4011iGS+5HacQ2HnD. Но начиная с версии v7.13.4 у меня в логе появилась такая строка: &nbsp;<br /><img class="lazyload "  src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/upload/forum/mikrotik/fa97672d68c7f08515173791437d659b2b3a9894.jpeg" alt="Пользователь добавил изображение" border="0" /> &nbsp;<br />Настройки скрипта такие: &nbsp;<br /><img class="lazyload "  src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="/upload/forum/mikrotik/77e51f148fdacfc1ed0c8eaa65b291ba665137bb.jpeg" alt="Пользователь добавил изображение" border="0" /> <br />
			<i>08.02.2024 16:11:00, spamdog.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390162</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390162</guid>
			<pubDate>Thu, 08 Feb 2024 16:11:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390161">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Отлично сработало и у меня на RB4011iGS+ с RouterOS 7.13.1, спасибо. <br />
			<i>16.01.2024 19:59:00, pockybum522.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390161</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390161</guid>
			<pubDate>Tue, 16 Jan 2024 19:59:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390160">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Ответ ortegaav по-прежнему работает безупречно. Проверено на routerboard rb750gr3 с версией 6.49.7. Спасибо, ребята. <br />
			<i>30.09.2023 06:30:00, leduycuong12345.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390160</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390160</guid>
			<pubDate>Sat, 30 Sep 2023 06:30:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390159">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Это новый скрипт, который работает на версии 6.46.8 System/Script/Add Name: «Update_NOIP» или любое другое имя по вашему желанию Policy: check - Не требовать прав -read -write -test ##############Настройки скрипта##################<br /><br />:local NOIPUser "your_no-ip_user" &nbsp;<br />:local NOIPPass "your_no-ip_pass" &nbsp;<br />:local WANInter "your_external_interface" &nbsp;<br />:local NOIPDomain "hostname.no-ip.net"<br /><br />###############################################<br /><br /># Получаем текущий IP на интерфейсе &nbsp;<br />:local currentIP [/ip address get [find interface="$WANInter" disabled=no] address]<br /><br /># Отрезаем маску подсети у IP-адреса &nbsp;<br />:for i from=( [:len $currentIP] - 1) to=0 do={  <br /> &nbsp; &nbsp;:if ( [:pick $currentIP $i] = "/") do={  <br /> &nbsp; &nbsp; &nbsp; &nbsp;:set currentIP [:pick $currentIP 0 $i]  <br /> &nbsp; &nbsp;} &nbsp;<br />}<br /><br />:if ([:resolve $NOIPDomain] != $currentIP) do={  <br /> &nbsp; &nbsp;/tool fetch mode=http user=$NOIPUser password=$NOIPPass url="http://dynupdate.no-ip.com/nic/update\3Fhostname=$NOIPDomain&myip=$currentIP" keep-result=no &nbsp;<br /> &nbsp; &nbsp;:log info "NO-IP Update: $NOIPDomain - $currentIP" &nbsp;<br />} &nbsp;<br /><br />System/Scheduler/Add Name: любое имя по вашему желанию Start Date: «Oct/30/2020» например Start Time: «00:00:00» например Interval: «00:00:10» или любое другое по вашему желанию Policy: check -read -write -test On Event: «Update_NOIP» или имя, которое вы дали скрипту <br />
			<i>18.11.2020 11:55:00, ortegaav.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390159</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390159</guid>
			<pubDate>Wed, 18 Nov 2020 11:55:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390158">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			У меня проблема с версией 6.36. В логе написано: «No-IP Updater: Previous IP address 42.x.x.x is equal to current IP, no update needed». Но я проверяю на noip, и там IP совсем не обновляется. Пожалуйста, помогите. <br />
			<i>29.12.2017 11:07:00, linhchivas.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390158</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390158</guid>
			<pubDate>Fri, 29 Dec 2017 11:07:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390157">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет, попробуй этот скрипт, он работает на версиях 6.40.x и 6.41.x RC &nbsp;<br /># Автоматическое обновление Dynamic DNS для No-IP<br /><br />:local noipuser "username" &nbsp;<br />:local noippass "password" &nbsp;<br />:local noiphost "hostname-kamu.ddns.net" &nbsp;<br />:local inetinterface "ether-inet" &nbsp;<br /><br />:global currentIP &nbsp;<br />:global previousIP &nbsp;<br /><br />:if ([/interface get $inetinterface value-name=running]) do={  <br /> :local currentIP [/ip address get [find interface="$inetinterface" disabled=no] address]  <br /> :for i from=( [:len $currentIP] - 1) to=0 do={  <br /> &nbsp;:if ( [:pick $currentIP $i] = "/") do={   <br /> &nbsp; :set currentIP [:pick $currentIP 0 $i]  <br /> &nbsp;} &nbsp;<br /> } &nbsp;<br /><br /> :if ($currentIP != $previousIP) do={ &nbsp;<br /> &nbsp;:log info "No-IP Updater: Текущий IP-адрес $currentIP не совпадает с предыдущим, требуется обновление" &nbsp;<br /> &nbsp;:set previousIP $currentIP &nbsp;<br /><br /> &nbsp;:local url "http://dynupdate.no-ip.com/nic/update\3Fmyip=$currentIP" &nbsp;<br /> &nbsp;:local noiphostarray &nbsp;<br /> &nbsp;:set noiphostarray [:toarray $noiphost]  <br /> &nbsp;:foreach host in=$noiphostarray do={ &nbsp;<br /> &nbsp; :log info "No-IP Updater: Отправка обновления для $host" &nbsp;<br /> &nbsp; /tool fetch url=($url . "&hostname=$host") user=$noipuser password=$noippass mode=http dst-path=("no-ip_ddns_update-" . $host . ".txt") &nbsp;<br /> &nbsp; :log info "No-IP Updater: Запрос на обновление отправлен. Имя хоста $host будет обновлено с IP $currentIP" &nbsp;<br /> &nbsp;} &nbsp;<br /> } else={ &nbsp;<br /> &nbsp;:log info "No-IP Updater: Предыдущий IP-адрес $previousIP совпадает с текущим, обновление не требуется" &nbsp;<br /> } &nbsp;<br />} else={ &nbsp;<br /> :log info "No-IP Updater: Интерфейс $inetinterface сейчас не активен, обновление не будет выполнено" &nbsp;<br />} <br />
			<i>22.12.2017 07:09:00, ErfanDL.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390157</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390157</guid>
			<pubDate>Fri, 22 Dec 2017 07:09:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390156">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			попробуй это <noindex><a href="https://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_No-IP_DNS" target="_blank" rel="nofollow" >https://wiki.mikrotik.com/wiki/Dynamic_DNS_Update_Script_for_No-IP_DNS</a></noindex> <br />
			<i>21.12.2017 19:53:00, sam2030.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390156</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390156</guid>
			<pubDate>Thu, 21 Dec 2017 19:53:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390155">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Версия 6.38.3 совсем не работает со скриптами для No-IP... Кто-нибудь может помочь, пожалуйста? <br />
			<i>05.06.2017 16:44:00, saintofinternet.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390155</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390155</guid>
			<pubDate>Mon, 05 Jun 2017 16:44:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390154">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Спасибо, но я сейчас использую freedns.afraid.org. <br />
			<i>15.05.2017 07:38:00, qbek.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390154</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390154</guid>
			<pubDate>Mon, 15 May 2017 07:38:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390153">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			включите облачный DDNS или используйте эту команду /ip cloud set ddns-enabled=yes, затем попробуйте этот скрипт:<br /><br />{ &nbsp;<br />:local noipuser "your@email.com" &nbsp;<br />:local noippass "yourpassword" &nbsp;<br />:local noiphost "yourname.ddns.net" &nbsp;<br />:local inetinterface "yourinterface" &nbsp;<br />:global previousIP;<br /><br />:if ([/interface get $inetinterface value-name=running]) do={  <br /> &nbsp; &nbsp;:local currentIP [/ip cloud get public-address];  <br /> &nbsp; &nbsp;:for i from=( [:len $currentIP] - 1) to=0 do={  <br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ( [:pick $currentIP $i] = "/") do={  <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set currentIP [:pick $currentIP 0 $i]  <br /> &nbsp; &nbsp; &nbsp; &nbsp;} &nbsp;<br /> &nbsp; &nbsp;} &nbsp;<br /> &nbsp; &nbsp;:if ($currentIP != $previousIP) do={ &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:log info "No-IP: Текущий IP $currentIP не совпадает с предыдущим, нужно обновление" &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set previousIP $currentIP &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:local url "http://dynupdate.no-ip.com/nic/update?myip=$currentIP" &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:local noiphostarray &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set noiphostarray [:toarray $noiphost]  <br /> &nbsp; &nbsp; &nbsp; &nbsp;:foreach host in=$noiphostarray do={ &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:log info "No-IP: Отправляю обновление для $host" &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/tool fetch url=($url . "&hostname=$host") user=$noipuser password=$noippass mode=http dst-path=("no-ip_ddns_update-" . $host . ".txt") &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:log info "No-IP: Хост $host обновлён на No-IP с IP $currentIP" &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;} &nbsp;<br /> &nbsp; &nbsp;} else={ &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:log info "No-IP: Предыдущий IP $previousIP совпадает с текущим, обновление не нужно" &nbsp;<br /> &nbsp; &nbsp;} &nbsp;<br />} else={ &nbsp;<br /> &nbsp; &nbsp;:log info "No-IP: Интерфейс $inetinterface сейчас не работает, обновление не производится." &nbsp;<br />} &nbsp;<br />} <br />
			<i>14.05.2017 01:17:00, ahmedalmi.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390153</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390153</guid>
			<pubDate>Sun, 14 May 2017 01:17:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390152">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Это был тот же самый, который я использовал до обновления routeros. После обновления он перестал работать. <br />
			<i>22.12.2017 02:01:00, saintofinternet.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390152</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390152</guid>
			<pubDate>Fri, 22 Dec 2017 02:01:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Обновление No-IP и DNSdynamic</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390151">Обновление No-IP и DNSdynamic</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Отличный рабочий скрипт для обновления DDNS NO-IP совместно с DNSdynamic Services. Отладка и проверка проведены. Сделано из-за ненадёжности долгосрочной работы без подтверждения на сервисе NO-IP. Извиняюсь за мой плохой английский. #No-IP #DNSdynamic update<br /><br />#--------------- Измените значения в этом разделе под вашу конфигурацию ------------------<br /><br />#Информация об учётной записи пользователя<br />:local noipuser "NO-IP_User_Name"<br />:local noippass "NO-IP_password"<br />:local dnsdynamicuser "DNSdynamic_User_Name"<br />:local dnsdynamicpass "DNSdynamic_password"<br />:local noiphost "NO-IP_host"<br />:local dnsdynamichost "DNSdynamic_host"<br /><br /># Укажите название интерфейса, который получает динамический IP-адрес<br />:local inetinterface "Internet_Interface_Name"<br /><br />#------------------- Больше изменений не требуется --------------------------------------<br /><br />:global previousIP<br /><br />:if ([/interface get $inetinterface value-name=running]) do={<br /># Получаем текущий IP на интерфейсе<br /> &nbsp; :local currentIP [/ip address get [find interface="$inetinterface" disabled=no] address]<br /><br /># Отрезаем маску подсети от IP-адреса<br /> &nbsp; :for i from=( [:len $currentIP] - 1) to=0 do={<br /> &nbsp; &nbsp; &nbsp; :if ( [:pick $currentIP $i] = "/") do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :set currentIP [:pick $currentIP 0 $i]<br /> &nbsp; &nbsp; &nbsp; }<br /> &nbsp; }<br /><br /> &nbsp; :if ($currentIP != $previousIP) do={<br /> &nbsp; &nbsp; &nbsp; :log info "IP: Текущий IP $currentIP не равен предыдущему IP, требуется обновление"<br /> &nbsp; &nbsp; &nbsp; :set previousIP $currentIP<br /><br /># URL обновления No-Ip. Обратите внимание, что "\3F" — это шестнадцатеричный код знака вопроса (?), он нужен, так как ? — специальный символ в командах.<br /> &nbsp; &nbsp; &nbsp; :local url "http://dynupdate.no-ip.com/nic/update\3Fmyip=$currentIP"<br /> &nbsp; &nbsp; &nbsp; :local noiphostarray<br /> &nbsp; &nbsp; &nbsp; :set noiphostarray [:toarray $noiphost]<br /> &nbsp; &nbsp; &nbsp; :foreach host in=$noiphostarray do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :log info "No-IP: Отправка обновления для $host"<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /tool fetch url=($url . "&hostname=$host") user=$noipuser password=$noippass mode=http dst-path=("no-ip_ddns_update-" . $host . ".txt")<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :log info "No-IP: Хост $host обновлён на No-IP с IP $currentIP"<br /> &nbsp; &nbsp; &nbsp; }<br /><br /># URL обновления dnsdynamic. Обратите внимание, что "\3F" — это шестнадцатеричный код знака вопроса (?), он нужен, так как ? — специальный символ в командах.<br /> &nbsp; &nbsp; &nbsp; :local url "https://www.dnsdynamic.org/nic/nic/update\3Fmyip=$currentIP"<br /> &nbsp; &nbsp; &nbsp; :local dnsdynamichostarray<br /> &nbsp; &nbsp; &nbsp; :set dnsdynamichostarray [:toarray $dnsdynamichost]<br /> &nbsp; &nbsp; &nbsp; :foreach host in=$dnsdynamichostarray do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :log info "dnsdynamic: Отправка обновления для $host"<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /tool fetch url=($url . "&hostname=$host") user=$dnsdynamicuser password=$dnsdynamicpass mode=http dst-path=("dnsdynamic_ddns_update-" . $host . ".txt")<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :log info "dnsdynamic: Хост $host обновлён на dnsdynamic с IP $currentIP"<br /> &nbsp; &nbsp; &nbsp; }<br /> &nbsp; } else={<br /> &nbsp; &nbsp; &nbsp; :log info "IP: Предыдущий IP $previousIP равен текущему IP, обновление не требуется"<br /> &nbsp; }<br />} else={<br /> &nbsp; :log info "IP: Интерфейс $inetinterface сейчас не активен, обновление не выполняется."<br />} <br />
			<i>03.04.2017 16:19:00, Shlyahov.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390151</link>
			<guid>http://mikrotik.moscow/forum/forum57/84798-obnovlenie-no_ip-i-dnsdynamic/message390151</guid>
			<pubDate>Mon, 03 Apr 2017 16:19:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
