Le 24/08/2017 à 11:30, Reco a écrit :
Somewhat hackish, but straightforward way to achieve this is to redirect DNS requests from your LAN to correct DNS. Something like this should do the trick:
Not so straightforward because you still need to get the ISP's DNS and update the iptables rules whenever the DNS change.
iptables -t nat -A OUTPUT -i <LAN Port> -p udp --dport 53 \ -j DNAT --to-destination <ISP DNS>:53 iptables -t nat -A OUTPUT -i <LAN Port> -p tcp --dport 53 \ -j DNAT --to-destination <ISP DNS>:53
You mean "-A PREROUTING".