Question pihole setup/config questions

Currently reading
Question pihole setup/config questions

259
28
NAS
DS1019+
Mobile operating system
  1. Android
anyone using or set up pihole in docker?
i've downloaded the official docker image, set it up and it "seems" to be working.

however two things.

all devices get reported as 172.17.0.1 in the pihole dashboard, which makes it tricky for admin purposes.
i can't seem to see a way to add local DNS entries/routes.
 

Rusty

Moderator
NAS Support
2,891
878
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
anyone using or set up pihole in docker?
i've downloaded the official docker image, set it up and it "seems" to be working.

however two things.

all devices get reported as 172.17.0.1 in the pihole dashboard, which makes it tricky for admin purposes.
i can't seem to see a way to add local DNS entries/routes.
There are topics and resources on Pihole configuration on the forum. Search for it a bit please.

Of the top of my head do you have ServerIP variable set to your local NAS IP? Also are you running this container in a bridge or host network configuration?
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
yes the ServerIP variable is set to 192.168.1.2 (which is the IP of the NAS).
the setup instructions i followed left the network settings as bridge.
 

Rusty

Moderator
NAS Support
2,891
878
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
yes the ServerIP variable is set to 192.168.1.2 (which is the IP of the NAS).
the setup instructions i followed left the network settings as bridge.
Move it to host network and try again. If you wanna leave it in bridge this will probably not work. What are your port mappings? Specifically for 53/UDP and 53/TCP. What guide did you use?
 

Rusty

Moderator
NAS Support
2,891
878
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Well, that should work, but if its not registering your local nas IP will be a problem. As I said, move it to host network and try again.
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
There are topics and resources on Pihole configuration on the forum. Search for it a bit please.

out of interest, where are these?
i search for pihole in resources and it came back with nothing, and searching for pihole in the forum doesn't bring up much either - unless the search function isn't playing nice for me.
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
Well, that should work, but if its not registering your local nas IP will be a problem. As I said, move it to host network and try again.

well pihole was working (ie it was blocking ads etc), however it's just that every client was being reported as 172.17.0.1 so the dashboard reported every client as being just the one.
 

Rusty

Moderator
NAS Support
2,891
878
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
You are
out of interest, where are these?
i search for pihole in resources and it came back with nothing, and searching for pihole in the forum doesn't bring up much either - unless the search function isn't playing nice for me.
You are correct my mistake. There are no resources for it, but there are a few topics open that are worth looking into.
 

Rusty

Moderator
NAS Support
2,891
878
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
well pihole was working (ie it was blocking ads etc), however it's just that every client was being reported as 172.17.0.1 so the dashboard reported every client as being just the one.
Have you tried running it as a host network conteiner? Any change there? You might look into an alternative solution such as ADGuard. Maybe it will be a better fit for you.
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
i did briefly set it up using host, but it then disabled any port settings etc, and when it was complete i had no idea how to actually connect to it, or what the IP address was supposed to be.

i've used pihole a lot previously hosted on a pi, so i'm quite familiar with it. it's just getting it set up correctly via docker that i'm struggling with.

i tried adguard before, and didn't like it that much.

of course, if i do get pihole setup, i still need to be able to set up static DNS routes for local resources.
 

Rusty

Moderator
NAS Support
2,891
878
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
i did briefly set it up using host, but it then disabled any port settings etc, and when it was complete i had no idea how to actually connect to it, or what the IP address was supposed to be
Well, this is expected considering that all host containers are running on their designated ports. The IP address in this case would be the same as when in bridge, your NAS IP.

i tried adguard before, and didn't like it that much.
fair enough
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
Well, this is expected considering that all host containers are running on their designated ports. The IP address in this case would be the same as when in bridge, your NAS IP.

ok, but then how do i access the webui when in host mode?
 

Attachments

  • Capture.JPG
    Capture.JPG
    46.7 KB · Views: 19
259
28
NAS
DS1019+
Mobile operating system
  1. Android
ah the crucial part no-one mentioned in the tutorials i saw.. the variable called WEB_PORT
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
i got it set up using host rather than bridge.
so the webui is accessible via 192.168.1.2:8084/admin

however, i can't use 192.168.1.2:8084 as a dns server because windows (for example) only lets you enter an IP address with no port number.

so i guess that method won't work.
 
259
28
NAS
DS1019+
Mobile operating system
  1. Android
Here is a good video that explains how to install pihole on synology. The HA part you don't have to do.

watched that, but was a bit confused about the 192.168.2.x range being created.
at one point i thought it was going to end up with the pihole on a 192.168.1.x IP that was accessible, but that doesn't seem to be the case?
 
133
34
NAS
DS918+, DS1815+
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. Android
i got it set up using host rather than bridge.
so the webui is accessible via 192.168.1.2:8084/admin
however, i can't use 192.168.1.2:8084 as a dns server because windows (for example) only lets you enter an IP address with no port number.
so i guess that method won't work.
You don't have to mention the port in windows. Just ip is enough.

watched that, but was a bit confused about the 192.168.2.x range being created.
at one point i thought it was going to end up with the pihole on a 192.168.1.x IP that was accessible, but that doesn't seem to be the case?
This is what you have to do if you use the --macvlan methode.
 
99
28
check out this gide over at pihole
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads

Trending threads

Top