{"id":8379,"date":"2025-04-03T12:42:11","date_gmt":"2025-04-03T05:42:11","guid":{"rendered":"https:\/\/pronetsolutionsvn.com\/?p=8379"},"modified":"2026-09-07T13:23:50","modified_gmt":"2026-09-07T06:23:50","slug":"huong-dan-cau-hinh-dynamic-dns-tren-router-mikrotik-2","status":"publish","type":"post","link":"https:\/\/pronetsolutionsvn.com\/?p=8379","title":{"rendered":"H\u01b0\u1edbng D\u1eabn C\u1ea5u H\u00ecnh Dynamic DNS Tr\u00ean Router Mikrotik"},"content":{"rendered":"<header class=\"entry-header\">\r\n<h2 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>H\u01b0\u1edbng D\u1eabn C\u1ea5u H\u00ecnh Dynamic DNS Tr\u00ean Router Mikrotik<\/strong><\/span><\/h2>\r\n<p>&nbsp;<\/p>\r\n<p class=\"entry-title\"><span style=\"font-size: 100%;\">M\u1eb7c \u0111\u1ecbnh, Mikrotik trang b\u1ecb s\u1eb5n DDNS v\u1edbi DNS Name d\u1ea1ng nh\u01b0 sau:\u00a0<span class=\"skimlinks-unlinked\">xxxxxxxxxxx.sn.mynetname.net<\/span>\u00a0v\u1edbi xxxxxxxxxxx l\u00e0 s\u1ed1 seri tr\u00ean m\u1ed7i thi\u1ebft b\u1ecb.<\/span><\/p>\r\n<p class=\"entry-title\"><span style=\"font-size: 100%;\">\u0110\u1ec3 b\u1eadt t\u00ednh n\u0103ng n\u00e0y l\u00ean, t\u1eeb giao di\u1ec7n\u00a0<span style=\"color: #ed1c24;\"><strong>Winbox-&gt;IP-&gt;Cloud<\/strong><\/span>\u00a0v\u00e0 sau \u0111\u00f3<span style=\"color: #ed1c24;\">\u00a0<strong>Tick ch\u1ecdn DDNS Enabled<\/strong><\/span>. L\u00fac n\u00e0y, DNS Name \u0111\u01b0\u1ee3c kh\u1edfi t\u1ea1o d\u1ef1a tr\u00ean s\u1ed1 seri thi\u1ebft b\u1ecb v\u00e0 k\u00e8m\u00a0<em>.<span class=\"skimlinks-unlinked\">sn.mynetname.net<\/span><\/em>\u00a0nh\u01b0 \u0111\u00e3 \u0111\u1ec1 c\u1eadp \u1edf tr\u00ean.<\/span><\/p>\r\n<\/header>\r\n<div class=\"entry-content\">\r\n<p data-adtags-visited=\"true\">V\u1eady t\u1ea1i sao kh\u00f4ng d\u00f9ng DNS Name \u0111\u00f3? V\u00ec kh\u00e1ch h\u00e0ng c\u1ea7n s\u1ef1 \u0111\u01a1n gi\u1ea3n, d\u1ec5 nh\u1edb, g\u1ee3i nh\u1edb. V\u00e0 \u0111\u00e2y l\u00e0 l\u00fd do b\u00e0i vi\u1ebft n\u00e0y ra \u0111\u1eddi.<\/p>\r\n<p data-adtags-visited=\"true\">\u00a0<\/p>\r\n<p data-adtags-visited=\"true\"><span style=\"color: #ed1c24;\"><strong>Qui tr\u00ecnh ho\u1ea1t \u0111\u1ed9ng trong th\u1ee7 thu\u1eadt n\u00e0y nh\u01b0 sau:<\/strong><\/span><\/p>\r\n<p data-adtags-visited=\"true\">1. Script th\u1ef1c thi c\u00e1c l\u1ec7nh \u0111\u1ec3 ki\u1ec3m tra IP Public tr\u00ean Router c\u00f3 s\u1ef1 thay \u0111\u1ed5i so v\u1edbi tr\u01b0\u1edbc \u0111\u00f3 kh\u00f4ng? N\u1ebfu c\u00f3, th\u1ef1c hi\u1ec7n c\u1eadp nh\u1eadt IP Public m\u1edbi l\u00ean HOST NO-IP. N\u1ebfu kh\u00f4ng, kh\u00f4ng l\u00e0m g\u00ec c\u1ea3. 2. Script kh\u00f4ng t\u1ef1 kh\u1edfi ch\u1ea1y, v\u00ec v\u1eady l\u1eadp l\u1ecbch ch\u1ea1y Script v\u1edbi chu k\u1ef3 5 ph\u00fat\/l\u1ea7n.<\/p>\r\n<p><span style=\"color: #ed1c24;\"><strong>C\u00e1c b\u01b0\u1edbc th\u1ef1c hi\u1ec7n nh\u01b0 sau:<\/strong><\/span><\/p>\r\n<p><strong>B\u01b0\u1edbc 1:<\/strong>\u00a0T\u1ea1o m\u1edbi Script . Tr\u00ean giao di\u1ec7n\u00a0<strong>Winbox-&gt;system-&gt;script<\/strong>. Sau \u0111\u00f3 nh\u1ea5n v\u00e0o d\u1ea5u [+] \u0111\u1ec3 th\u00eam m\u1edbi. \u2013 \u0110\u1eb7t t\u00ean cho Script \u1edf tr\u01b0\u1eddng\u00a0<strong>Name<\/strong>. V\u00ed d\u1ee5 \u0111\u1eb7t t\u00ean cho script l\u00e0\u00a0<strong>DDNS-NOIP<\/strong>\u00a0\u2013 Ph\u1ea7n\u00a0<strong>Source<\/strong>\u00a0s\u1ebd l\u00e0 n\u1ed9i dung script c\u1ea7n th\u00eam v\u00e0o.( code script b\u00ean d\u01b0\u1edbi)<\/p>\r\n<div class=\"wp-block-group\">\r\n<div class=\"wp-block-group__inner-container\">\r\n<div class=\"wp-block-syntaxhighlighter-code \">\r\n<div>\r\n<div id=\"highlighter_50791\" class=\"syntaxhighlighter plain\">\r\n<div class=\"table-responsive wprt_style_display\">\r\n<table class=\"table\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n<tbody>\r\n<tr>\r\n<td class=\"gutter\">\r\n<div class=\"line number1 index0 alt2\">1<\/div>\r\n<div class=\"line number2 index1 alt1\">2<\/div>\r\n<div class=\"line number3 index2 alt2\">3<\/div>\r\n<div class=\"line number4 index3 alt1\">4<\/div>\r\n<div class=\"line number5 index4 alt2\">5<\/div>\r\n<div class=\"line number6 index5 alt1\">6<\/div>\r\n<div class=\"line number7 index6 alt2\">7<\/div>\r\n<div class=\"line number8 index7 alt1\">8<\/div>\r\n<div class=\"line number9 index8 alt2\">9<\/div>\r\n<div class=\"line number10 index9 alt1\">10<\/div>\r\n<div class=\"line number11 index10 alt2\">11<\/div>\r\n<div class=\"line number12 index11 alt1\">12<\/div>\r\n<div class=\"line number13 index12 alt2\">13<\/div>\r\n<div class=\"line number14 index13 alt1\">14<\/div>\r\n<div class=\"line number15 index14 alt2\">15<\/div>\r\n<div class=\"line number16 index15 alt1\">16<\/div>\r\n<div class=\"line number17 index16 alt2\">17<\/div>\r\n<div class=\"line number18 index17 alt1\">18<\/div>\r\n<div class=\"line number19 index18 alt2\">19<\/div>\r\n<div class=\"line number20 index19 alt1\">20<\/div>\r\n<\/td>\r\n<td class=\"code\">\r\n<div class=\"container\">\r\n<div class=\"line number1 index0 alt2\"><code class=\"plain plain\">#Thong tin tai khoan NO-IP va HOST.<\/code><\/div>\r\n<div class=\"line number2 index1 alt1\"><code class=\"plain plain\">:local username \"no-ip-user\"<\/code><\/div>\r\n<div class=\"line number3 index2 alt2\"><code class=\"plain plain\">:local password \"no-ip-pass\"<\/code><\/div>\r\n<div class=\"line number4 index3 alt1\"><code class=\"plain plain\">:local host \"no-ip-host\"<\/code><\/div>\r\n<div class=\"line number5 index4 alt2\"><code class=\"plain plain\">#Cac dong ben duoi khong thay doi.<\/code><\/div>\r\n<div class=\"line number6 index5 alt1\"><code class=\"plain plain\">:global OldIP<\/code><\/div>\r\n<div class=\"line number7 index6 alt2\"><code class=\"plain plain\">\/ip cloud force-update<\/code><\/div>\r\n<div class=\"line number8 index7 alt1\"><code class=\"plain plain\">:delay 5<\/code><\/div>\r\n<div class=\"line number9 index8 alt2\"><code class=\"plain plain\">:local NewIP [\/ip cloud get public-address]<\/code><\/div>\r\n<div class=\"line number10 index9 alt1\"><code class=\"plain plain\">:log info \"No-IP: NewIP = $NewIP\"<\/code><\/div>\r\n<div class=\"line number11 index10 alt2\"><code class=\"plain plain\">:if ($NewIP != $OldIP) do={<\/code><\/div>\r\n<div class=\"line number12 index11 alt1\"><code class=\"plain plain\">:log info \"No-IP: New IP $NewIP is not equal to Old IP, update needed\"<\/code><\/div>\r\n<div class=\"line number13 index12 alt2\"><code class=\"plain plain\">:set OldIP $NewIP<\/code><\/div>\r\n<div class=\"line number14 index13 alt1\"><code class=\"plain plain\">:local url \"<a href=\"https:\/\/dynupdate.no-ip.com\/nic\/update\/?myip=\">https:\/\/dynupdate.no-ip.com\/nic\/update\/?myip=<\/a>$NewIP&amp;hostname=$host\"<\/code><\/div>\r\n<div class=\"line number15 index14 alt2\"><code class=\"plain plain\">:log info \"No-IP: Sending update for $host\"<\/code><\/div>\r\n<div class=\"line number16 index15 alt1\"><code class=\"plain plain\">\/tool fetch url=$url user=$username password=$password mode=https keep-result=no<\/code><\/div>\r\n<div class=\"line number17 index16 alt2\"><code class=\"plain plain\">:log info \"No-IP: Host $host updated on No-IP with IP $NewIP\"<\/code><\/div>\r\n<div class=\"line number18 index17 alt1\"><code class=\"plain plain\">} else={<\/code><\/div>\r\n<div class=\"line number19 index18 alt2\"><code class=\"plain plain\">:log info \"No-IP: update not needed \"<\/code><\/div>\r\n<div class=\"line number20 index19 alt1\"><code class=\"plain plain\">}<\/code><\/div>\r\n<\/div>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<p><strong><span style=\"color: #ed1c24;\">B\u01b0\u1edbc 2<\/span>:<\/strong>\u00a0T\u1ea1o l\u1ecbch cho ph\u00e9p ch\u1ea1y script v\u1edbi t\u00ean\u00a0<strong>DDNS-NOIP<\/strong>\u00a0v\u1edbi chu k\u00ec 5 ph\u00fat\/l\u1ea7n. Tr\u00ean giao di\u1ec7n<span style=\"color: #ed1c24;\">\u00a0<strong>Winbox-&gt;system-&gt;scheduler<\/strong><\/span>. Sau \u0111\u00f3 nh\u1ea5n v\u00e0o d\u1ea5u [+] \u0111\u1ec3 th\u00eam l\u1ecbch m\u1edbi. \u2013 \u0110\u1eb7t t\u00ean cho l\u1ecbch \u1edf tr\u01b0\u1eddng\u00a0<strong>Name<\/strong>. V\u00ed d\u1ee5 \u0111\u1eb7t t\u00ean cho l\u1ecbch l\u00e0\u00a0<strong>scheduler-ddns-noip<\/strong>\u00a0\u2013\u00a0<strong>Start Date:<\/strong>\u00a0khai b\u00e1o ng\u00e0y\/th\u00e1ng\/n\u0103m b\u1eaft \u0111\u1ea7u kh\u1edfi ch\u1ea1y script. \u2013\u00a0<strong>Start Time:<\/strong>\u00a0khai b\u00e1o gi\u1edd\/ph\u00fat\/gi\u00e2y b\u1eaft \u0111\u1ea7u kh\u1edfi ch\u1ea1y script. \u2013\u00a0<strong>Interval:<\/strong>\u00a0th\u1eddi gian vi\u1ec7c kh\u1edfi ch\u1ea1y script \u0111\u01b0\u1ee3c l\u1eb7p l\u1ea1i. Trong v\u00ed d\u1ee5 n\u00e0y th\u00ec c\u1ee9 m\u1ed7i 5 ph\u00fat th\u00ec l\u1ea1i kh\u1edfi ch\u1ea1y 1 l\u1ea7n. Khai b\u00e1o nh\u01b0 sau:\u00a0<strong>00:05:00<\/strong>\u00a0\u2013\u00a0<strong>On Event:<\/strong>\u00a0khai b\u00e1o script s\u1ebd \u0111\u01b0\u1ee3c kh\u1edfi ch\u1ea1y, c\u1ee5 th\u1ec3 h\u01a1n ch\u00ednh l\u00e0 t\u00ean l\u00fac n\u00e3y ch\u00fang ta \u0111\u1eb7t \u1edf ph\u1ea7n script, trong v\u00ed d\u1ee5 n\u00e0y script \u0111\u01b0\u1ee3c kh\u1edfi ch\u1ea1y v\u1edbi t\u00ean l\u00e0\u00a0<strong>DDNS-NOIP<\/strong>.<\/p>\r\n<p>Ch\u00fac m\u1ecdi ng\u01b0\u1eddi th\u00e0nh c\u00f4ng.<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>H\u01b0\u1edbng D\u1eabn C\u1ea5u H\u00ecnh Dynamic DNS Tr\u00ean Router Mikrotik &nbsp; M\u1eb7c \u0111\u1ecbnh, Mikrotik trang b\u1ecb s\u1eb5n DDNS v\u1edbi DNS Name d\u1ea1ng nh\u01b0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8385,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[57],"tags":[162,270,284,152],"class_list":["post-8379","post","type-post","status-publish","format-aside","has-post-thumbnail","hentry","category-ho-tro","tag-bridge-modem","tag-cau-hinh-mikrotik","tag-mikrotik","tag-mo-port","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=\/wp\/v2\/posts\/8379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8379"}],"version-history":[{"count":0,"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=\/wp\/v2\/posts\/8379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=\/wp\/v2\/media\/8385"}],"wp:attachment":[{"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pronetsolutionsvn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}