# Recommended strategy for clients with hard-coded DNS?

**URL:** <https://discourse.pi-hole.net/t/recommended-strategy-for-clients-with-hard-coded-dns/22103>\
**Category:** General\
**Created:** [August 3, 2019, 2:21am UTC](https://discourse.pi-hole.net/t/recommended-strategy-for-clients-with-hard-coded-dns/22103 "2019-08-03T02:21:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [August 3, 2019, 2:36am UTC](https://discourse.pi-hole.net/t/recommended-strategy-for-clients-with-hard-coded-dns/22103/2 "2019-08-03T02:36:16Z")

</div>

The best way to handle those devices would be to use some rules on the router or firewall to intercept all traffic to port 53 and give it to the Pi-hole DNS. I think there is a FAQ or two that covers some of the examples for `iptables`, and there is a blog post about using Ubiquity gear and their configurations.

> [@\[Guide/DDWRT\] Force PiHole as DNS server with client details](https://discourse.pi-hole.net/t/guide-ddwrt-force-pihole-as-dns-server-with-client-details/21310):
>
> I've sweat so much over this so I thought I would share how I did it. Maybe there is already a guide somewhere or something.... I asked here but we didn't find a solution and on the DDWRT website I spent a week reading and trying before posting. I wanted to force the PiHole to be the only accessible DNS server. Using DDWRT, I tried forcing it, but since the clients would detect that the wrong server answered the query, it didn't work. nslookup google.com ;; reply from unexpected source: 192.16…

> **[Catching and dealing with naughty devices on my home network](https://scotthelme.co.uk/catching-naughty-devices-on-my-home-network/)**
>
> Just last week I wrote about how I improved the security and privacy of all
> devices on my home network using a Raspberry Pi, Pi-Hole and the new 1.1.1.1
> resolver from Cloudflare with DoH. Following deployment, the dashboards and
> metrics on the...

---

_[View the full topic](https://discourse.pi-hole.net/t/recommended-strategy-for-clients-with-hard-coded-dns/22103)._
