ROS根据域名选择解析的DNS服务器

/ip firewall layer7-protocol
add name=testdns regexp=xiaocaicai.com

/ip firewall nat
add action=dst-nat chain=dstnat disabled=no  dst-port=53 layer7-protocol=testdns protocol=udp to-addresses=8.8.8.8 to-ports=53
add action=dst-nat chain=dstnat disabled=no  dst-port=53 layer7-protocol=testdns protocol=tcp to-addresses=8.8.8.8 to-ports=53
  1. Change the regex to match your domain.
  2. Change 8.8.8.8 to be your AD DNS server

参考文章

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.