Mikrotik split-dns- သူတို့လုပ်ခဲ့တယ်။

10 နှစ်အောက်အကြာတွင်၊ RoS (တည်ငြိမ်သော 6.47 တွင်) developer များသည် အထူးစည်းမျဉ်းများနှင့်အညီ DNS queries များကို ပြန်ညွှန်းနိုင်စေမည့် လုပ်ဆောင်နိုင်စွမ်းကို ထည့်သွင်းခဲ့သည်။ အကယ်၍ firewall ရှိ Layer-7 စည်းမျဉ်းများကို အစောပိုင်းက ရှောင်တိမ်းရန် လိုအပ်ပါက၊ ယခု ၎င်းကို ရိုးရိုးရှင်းရှင်းနှင့် ပြေပြစ်စွာ လုပ်ဆောင်နိုင်ပြီဖြစ်သည်။

/ip dns static
add forward-to=192.168.88.3 regexp=".*\.test1\.localdomain" type=FWD
add forward-to=192.168.88.56 regexp=".*\.test2\.localdomain" type=FWD

ငါ့ရဲ့ပျော်ရွှင်မှုက ကန့်သတ်ချက်မရှိဘူး!

ဒါက ငါတို့ကို ဘာခြိမ်းခြောက်တာလဲ။

အနည်းဆုံးအားဖြင့်၊ ဤကဲ့သို့သော ထူးဆန်းသော NAT တည်ဆောက်မှုများကို ဖယ်ရှားနိုင်သည်-


/ip firewall layer7-protocol
add comment="DNS Nat contoso.com" name=contoso.com regexp="\x07contoso\x03com"
/ip firewall mangle
add action=mark-packet chain=prerouting comment="mark dns contoso.com" dst-address-type=local dst-port=53 in-interface-list=DNSMASQ layer7-protocol=contoso.com new-packet-mark=dns-contoso.com passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment="mark dns contoso.com" dst-address-type=local dst-port=53 in-interface-list=DNSMASQ layer7-protocol=contoso.com new-packet-mark=dns-contoso.com passthrough=yes protocol=tcp
/ip firewall nat
add action=dst-nat chain=dstnat comment="DST-NAT dns contoso.com" dst-port=53 in-interface-list=DNSMASQ packet-mark=dns-contoso.com protocol=udp to-addresses=192.0.2.15
add action=dst-nat chain=dstnat comment="DST-NAT dns contoso.com" dst-port=53 in-interface-list=DNSMASQ packet-mark=dns-contoso.com protocol=tcp to-addresses=192.0.2.15
add action=masquerade chain=srcnat comment="mask dns contoso.com" dst-port=53 packet-mark=dns-contoso.com protocol=udp
add action=masquerade chain=srcnat comment="mask dns contoso.com" dst-port=53 packet-mark=dns-contoso.com protocol=tcp

ဒါတွေအားလုံးမဟုတ်သေးပါဘူး၊ dns ပျက်သွားအောင် ကူညီပေးမယ့် forwarder အများအပြားကို အခုပဲ စာရင်းသွင်းနိုင်ပါပြီ။
Intelligent DNS processing သည် ကုမ္ပဏီ၏ကွန်ရက်ထဲသို့ ipv6 ကို စတင်မိတ်ဆက်နိုင်စေမည်ဖြစ်သည်။ အဲဒီ့မတိုင်ခင်က ကျွန်တော် ဒါကို မလုပ်ခဲ့ဘူး၊ အကြောင်းရင်းကတော့ local addresses တွေမှာ dns name အတော်များများကို ဖြေရှင်းဖို့ လိုအပ်ပြီး ipv6 မှာ တော်တော်ကြီးတဲ့ ချိုင်းထောက်တွေမပါဘဲ လုပ်လို့မရပါဘူး။

source: www.habr.com