From a2fa98e80a4c91f0c1260d3c1a9b3806a848ba3f Mon Sep 17 00:00:00 2001 From: sujiba <65259334+sujiba@users.noreply.github.com> Date: Thu, 4 May 2023 01:33:02 +0200 Subject: [PATCH] added dns problems to readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index beaee26..76f5bb0 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,19 @@ If you are having problems with the pihole deployment inside the container, unco docker-compose up -d --force-recreate ``` +## DNS problems +If you are running other docker containers on the same host and cannot use name resolution within those containers, you have to modify the resolvconf.conf on your host system and uncomment the following: +``` +# If you run a local name server, you should uncomment the below line and +# configure your subscribers configuration files below. +name_servers=127.0.0.1 +``` +The following command writes the changes to resolv.conf: +``` +sudo resolvconf -u +``` +See also the solution on [StackExchange](https://unix.stackexchange.com/questions/647996/docker-container-dns-not-working-with-pihole) + ## Blocklists - [Firebog Non-crossed lists](https://v.firebog.net/hosts/lists.php?type=nocross) - [x0uid SpotifyAdBlock](https://raw.githubusercontent.com/x0uid/SpotifyAdBlock/master/SpotifyBlocklist.txt)