2 different DNS

Hey Guys

Need your assistance here, i have 2 LAN network hotspot and office LAn each network need to have individual DNS server how to assign specific dns example hotspot redirect to 8.8.8.8 dns and office LAN redirect to 208.67.222.123 the reason is i have my privacy concern in office LAN. anyone can enlighten me so much very much appreciated.

Thank You

You could do it like this.

add action=dst-nat chain=dstnat dst-port=53 in-interface=LAN1 protocol=udp \
    to-addresses=8.8.8.8
add action=dst-nat chain=dstnat dst-port=53 in-interface=LAN1 protocol=tcp \
    to-addresses=8.8.8.8
add action=dst-nat chain=dstnat dst-port=53 in-interface=LAN2 protocol=udp \
    to-addresses=208.67.222.222
add action=dst-nat chain=dstnat dst-port=53 in-interface=LAN2 protocol=tcp \
    to-addresses=208.67.222.222

Great! thanks

Why the same rule two times?

i’m triying to implement this and it doesnt work…

One for tcp and one for udp.