e3d7c9c52410d4036a11edb897061f76a16ac31c
howto/mikrotik.md
| ... | ... | @@ -148,4 +148,9 @@ add name=DN42-DNS regexp="\\x04dn42.\\x01" |
| 148 | 148 | add action=src-nat chain=srcnat comment="NAT to DN42 DNS" dst-address=172.23.0.53 dst-port=53 protocol=udp src-address=192.168.0.0/24 to-addresses=192.168.0.1 |
| 149 | 149 | add action=dst-nat chain=dstnat dst-address-type=local dst-port=53 layer7-protocol=DN42-DNS protocol=udp src-address=192.168.0.0/24 to-addresses=172.23.0.53 to-ports=53 |
| 150 | 150 | |
| 151 | +``` |
|
| 152 | +Since version 6.47 have added functionality that can redirect DNS queries according to special rules. If you used to do Layer-7 rules in the firewall, now it's simple and elegant: |
|
| 153 | +``` |
|
| 154 | +/ip dns static |
|
| 155 | +add comment=DN42 forward-to=172.23.0.53 regexp=".*\\.dn42" type=FWD |
|
| 151 | 156 | ``` |
| ... | ... | \ No newline at end of file |