How to set host machine to use docker pihole dns?

Hi, I'm trying to set up the PiHole docker container on a laptop running Debian buster and I would like to have the laptop itself also use the PiHole dns, but I am unsure of how to do that.

I am using the stock docker-compose.yml listed here: GitHub - pi-hole/docker-pi-hole: Pi-hole in a docker container (except with the timezone set to my own timezone)

Here is what my /etc/network/interfaces file looks like on the debian host machine:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface  
auto eno1 
iface eno1 inet static  

Note: I also tried not listing a dns-nameserver in the /etc/network/interfaces file but that didnt seem to work either.

PiHole itself is running fine, I can access the web admin and if I point another device to the laptop, it blocks sites on the device, but how do I get the PiHole host machine to use the PiHole docker dns?

Any help would be appreciated,

I got it working! Turns out there was a stray nameserver set in the /etc/resolv.conf file. Once I commented that out, it worked fine.

Feel free to close.

It would help tremendously if you posted your invalid resolv.conf. Probably too late though :frowning: