Hi All,
I am trying to use custom DNS servers only for Wlan users(using different subnets/SSIDs as well). I have already done the below script but it wont work so far.
add action=dst-nat chain=dstnat dst-port=53 in-interface=test.wlan protocol=udp to-addresses=DNS1 to-ports=53
add action=dst-nat chain=dstnat dst-port=53 in-interface=test.wlan protocol=udp to-addresses=DNS2 to-ports=53
add action=dst-nat chain=dstnat dst-port=53 in-interface=test.wlan protocol=tcp to-addresses=DNS1 to-ports=53
add action=dst-nat chain=dstnat dst-port=53 in-interface=test.wlan protocol=tcp to-addresses=DNS2 to-ports=53
tried using subnets for as following as well, still wont work. ![]()
add action=dst-nat chain=dstnat src-address=(Subnet/24) dst-port=53 in-interface=test.wlan protocol=udp to-addresses=DNS1 to-ports=53
add action=dst-nat chain=dstnat src-address=(Subnet/24) dst-port=53 in-interface=test.wlan protocol=tcp to-addresses=DNS2 to-ports=53
add action=dst-nat chain=dstnat src-address=(Subnet/24) dst-port=53 in-interface=test.wlan protocol=udp to-addresses=DNS1 to-ports=53
add action=dst-nat chain=dstnat src-address=(Subnet/24) dst-port=53 in-interface=test.wlan protocol=tcp to-addresses=DNS2 to-ports=53
test.wlan is the SSID I use with subnets so users can connect to the network.
it works when I do use the DNS under ip/dns which applies to whole network
What am I missing here? Please let me know how to do this properly.
Thanks a lot.
![]()