# Block DNS Change

**URL:** <https://discourse.pi-hole.net/t/block-dns-change/16565>\
**Category:** Help\
**Created:** [January 28, 2019, 10:15am UTC](https://discourse.pi-hole.net/t/block-dns-change/16565 "2019-01-28T10:15:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Nanisaure](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/nanisaure/32/6286_2.png) [@Nanisaure](https://discourse.pi-hole.net/u/Nanisaure)\
**Post date:** [January 31, 2019, 11:55pm UTC](https://discourse.pi-hole.net/t/block-dns-change/16565/5 "2019-01-31T23:55:37Z")

</div>

Thanks for the suggestions I found the solution for anyone who finds this.

```
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -t nat -I PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to 192.168.1.2:53
iptables -t nat -I PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 192.168.1.2:53
iptables -t nat -I PREROUTING -i br0 -p tcp -s 192.168.1.2 --dport 53 -j ACCEPT
iptables -t nat -I PREROUTING -i br0 -p udp -s 192.168.1.2 --dport 53 -j ACCEPT

```

I ran these commands directly on the Asus RT-AC68R router via SSH using putty. This will force any DNS client change to use pihole. it will take a few minutes for it take effect. also credit for the commands go to [Lethal](https://discourse.pi-hole.net/t/pi-hole-works-everywhere-except-android-phones/3428/80)

---

_[View the full topic](https://discourse.pi-hole.net/t/block-dns-change/16565)._
