Code: Select all
^(?![\w]*[-][\d]{2})(.*[\.]?ad\.example\.com)$
Here is a little run down on how to do this, the only thing left to do is to check what janisk says but im pretty sure this handles it decently enough.1. Change the regex to match your domain.Code: Select all/ip firewall layer7-protocol add name=testdns regexp=lantest.mindlesstux.com /ip firewall nat add action=dst-nat chain=dstnat disabled=no dst-address=4.2.2.2 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-address=4.2.2.2 dst-port=53 layer7-protocol=testdns protocol=tcp to-addresses=8.8.8.8 to-ports=53
2. Change 4.2.2.2 to be your RB DNS server
3. Change 8.8.8.8 to be your AD DNS server
*edit*
/me applies this little craft for his work domain on his home RB