<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Версия Resolve с поддержкой IPv6?]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Версия Resolve с поддержкой IPv6? форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Sun, 02 Aug 2026 12:36:21 -0400</pubDate>
		<item>
			<title>Версия Resolve с поддержкой IPv6?</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284391">Версия Resolve с поддержкой IPv6?</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Прикольно, но проверь синтаксические ошибки, например, отсутствует двоеточие перед "to_something_" и на- хо rror. Переработанная версия:<br /><br /># define global function to resolve IPv6 DNS Names to IPs<br />:global resolveipv6 do={<br /> &nbsp; &nbsp;:local maxwait 5<br /> &nbsp; &nbsp;:local search &nbsp;[:toarray ""]<br /> &nbsp; &nbsp;:local result &nbsp;[:toarray ""]<br /> &nbsp; &nbsp;/ipv6 firewall address-list<br /> &nbsp; &nbsp;remove [find where list=tmp-resolve and address=$1]<br /> &nbsp; &nbsp;add list=tmp-resolve address=$1<br /> &nbsp; &nbsp;:local cnt 0<br /> &nbsp; &nbsp;:do {<br /> &nbsp; &nbsp; &nbsp; &nbsp;:delay 1s<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set cnt ($cnt +1)<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set search [find where list=tmp-resolve and dynamic=yes]<br /> &nbsp; &nbsp;} while=(([:len $search] = 0) and ($cnt &lt; $maxwait))<br /> &nbsp; &nbsp;:foreach i in=$search do={<br /> &nbsp; &nbsp; &nbsp; &nbsp;:local tmpadd [get $i address]<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set result ($result, [:pick $tmpadd 0 [:find $tmpadd "/"]])<br /> &nbsp; &nbsp;}<br /> &nbsp; &nbsp;remove [find where list=tmp-resolve and dynamic=no]<br /> &nbsp; &nbsp;:return $result<br />}<br /><br /># use new global function (output to console)<br />:put [$resolveipv6 "dns.google.com"]<br /><br /># use new global function (save to variable, returns an array)<br />{<br />:local myvar [$resolveipv6 "dns.cloudflare.com"]<br />:put $myvar<br />} <br />
			<i>31.12.2022 16:20:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284391</link>
			<guid>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284391</guid>
			<pubDate>Sat, 31 Dec 2022 16:20:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Версия Resolve с поддержкой IPv6?</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284390">Версия Resolve с поддержкой IPv6?</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет всем. Вы можете использовать список адресов брандмауэра как обходной путь для этого. Пример: /ipv6 firewall address-list {<br /> &nbsp; &nbsp; add list=google-dns address=dns.google.com<br /> &nbsp; &nbsp; :delay 1<br /> &nbsp; &nbsp; :foreach ip in=[find list=google-dns && dynamic] do={:put [get $ip address]}<br /> } Вывод: 2001:4860:4860::8844/128<br />2001:4860:4860::8888/128 Вы также можете создать функцию для этого и загрузить ее при запуске роутера, чтобы иметь возможность использовать ее позже (это также удаляет маску подсети /128 из IP-адреса и возвращает массив, если есть несколько записей). # определение глобальной функции для разрешения IPv6 DNS-имен в IP-адреса<br />:global resolveipv6 do={<br /> &nbsp; &nbsp;:local result [:toarray ""]    <br /> &nbsp; &nbsp;:local maxwait 5<br /> &nbsp; &nbsp;:local cnt 0<br /> &nbsp; &nbsp;:local listname "tmp-resolve$cnt"<br /> &nbsp; &nbsp;/ipv6 firewall address-list {<br /> &nbsp; &nbsp; &nbsp; &nbsp;:do {<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:while ([:len [find list=$listname]] &gt;0) do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set cnt ($cnt + 1)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set listname "tmp-resolve$cnt"<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:set cnt 0<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;add list=$listname address=$1<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:while ([find list=$listname && dynamic] = "" && $cnt &lt; $maxwait) do={:delay 1;:set cnt ($cnt +1)}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:foreach i in=[find list=$listname && dynamic] do={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :local rawip [get $i address]<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :set result ($result, [:pick $rawip 0 [:find $rawip "/"]])<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;remove [find list=$listname && !dynamic]<br /> &nbsp; &nbsp; &nbsp; &nbsp;}<br /> &nbsp; &nbsp; }<br /> &nbsp; &nbsp;:return $result<br />}<br /># использование новой глобальной функции (вывод в консоль)<br />:put [$resolveipv6 "dns.google.com"]<br /><br /># использование новой глобальной функции (сохранение в переменную, возвращает массив)<br />:local myvar [$resolveipv6 "dns.google.com"] edit: исправлена опечатка Regards @colinardo <br />
			<i>30.12.2022 14:38:00, colinardo.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284390</link>
			<guid>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284390</guid>
			<pubDate>Fri, 30 Dec 2022 14:38:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Версия Resolve с поддержкой IPv6?</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284389">Версия Resolve с поддержкой IPv6?</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Okay, let's do this. Please provide the text you want me to translate. I'm ready when you are! <br />
			<i>13.12.2021 23:24:00, Amm0.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284389</link>
			<guid>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284389</guid>
			<pubDate>Mon, 13 Dec 2021 23:24:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Версия Resolve с поддержкой IPv6?</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284388">Версия Resolve с поддержкой IPv6?</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Может, добавьте функцию для конкретного атрибута, только IPv6/IPv4, потому что в определенных условиях это нужно. Например, в одном домене есть 2 записи: первая — IPv4, а вторая — IPv6. И при этом я хочу отображать результат IPv6. <br />
			<i>10.12.2021 21:11:00, niammuddin.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284388</link>
			<guid>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284388</guid>
			<pubDate>Fri, 10 Dec 2021 21:11:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Версия Resolve с поддержкой IPv6?</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284387">Версия Resolve с поддержкой IPv6?</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Это поднималось больше 10 лет назад. Где мы можем внести это в список запросов на новые функции? Смешно, что это так и не реализовали. Я использовал это, и работает, но это какая-то кривая корявая заготовка: <noindex><a href="https://administrator.de/en/mikrotik-scripting-resolve-domain-to-ipv6-address-5151910821.html" target="_blank" rel="nofollow" >https://administrator.de/en/mikrotik-scripting-resolve-domain-to-ipv6-address-5151910821.html</a></noindex> РЕДАКТИРОВАНИЕ МОДОВ: по заслугам: автор скрипта — rextended. Не тот, кто показывает его на веб-странице. <br />
			<i>14.01.2024 08:34:00, ilium007.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284387</link>
			<guid>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284387</guid>
			<pubDate>Sun, 14 Jan 2024 08:34:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Версия Resolve с поддержкой IPv6?</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284386">Версия Resolve с поддержкой IPv6?</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Есть кто-нибудь, кто умеет выполнять IPv6 DNS запросы? <br />
			<i>30.07.2013 16:08:00, efaden.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284386</link>
			<guid>http://mikrotik.moscow/forum/forum57/71385-versiya-resolve-s-podderzhkoy-ipv6/message284386</guid>
			<pubDate>Tue, 30 Jul 2013 16:08:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
