Question pihole setup/config questions

Currently reading
Question pihole setup/config questions

284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
i guess there is no way to end up with the docker instance having it's own IP address in the 192.168.1.x range?
 

Geeked

NAS Hosted
Subscriber
137
65
nashosted.com
NAS
DS918+, DS218+(2), RS820+
Operating system
  1. Linux
  2. macOS
  3. Windows
Mobile operating system
  1. iOS
Can you show me a screenshot of how you are adding the IP on your laptop? I want to make sure everything is correct. Also make sure you reserve the NAS IP on your router so it doesn't change randomly. Thanks.
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
yes my NAS has a static IP
and i'm just changing the DNS server from automatic to manually assigned and using 192.168.1.2 (the NAS IP).
i'm doing that the correct way as i previously had pihole set up in bridge mode before removing and creating it again.
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
sorry, not an option.
but i am happy to provide other data if required
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
this is what happens when i set the DNS server as 192.168.1.2 on the laptop

Code:
Wireless LAN adapter WiFi:

   Connection-specific DNS Suffix  . : localdomain
   Description . . . . . . . . . . . : Killer Wireless-n/a/ac 1535 Wireless Network Adapter
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::99b5:ffbf:42fb:c149%14(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.84(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 10 April 2020 07:31:56
   Lease Expires . . . . . . . . . . : 11 April 2020 20:04:45
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 127710928
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-84-17-A9-9C-B6-D0-F1-C6-BF
   DNS Servers . . . . . . . . . . . : 192.168.1.2
   NetBIOS over Tcpip. . . . . . . . : Enabled

C:\Users\chenk>nslookup google.com
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  192.168.1.2

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out
 

Attachments

  • Capture.JPG
    Capture.JPG
    50.9 KB · Views: 8
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
and this is it set back to the original DNS

Code:
Wireless LAN adapter WiFi:

   Connection-specific DNS Suffix  . : localdomain
   Description . . . . . . . . . . . : Killer Wireless-n/a/ac 1535 Wireless Network Adapter
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::99b5:ffbf:42fb:c149%14(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.84(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 10 April 2020 07:31:57
   Lease Expires . . . . . . . . . . : 11 April 2020 20:05:51
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 127710928
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-84-17-A9-9C-B6-D0-F1-C6-BF
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

C:\Users\chenk>nslookup google.com
Server:  unifi.localdomain
Address:  192.168.1.1

Non-authoritative answer:
Name:    google.com
Addresses:  2a00:1450:4009:819::200e
          216.58.211.174
 
141
36
NAS
DS1815+
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. iOS
And what have you set as DNS in your pihole settings ? The standard Google DNS 8.8.8.8?
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
yes, that's correct.
i deleted the container and set it up again following your site instructions to the letter, same end result
 

Attachments

  • Capture.JPG
    Capture.JPG
    46.2 KB · Views: 13
141
36
NAS
DS1815+
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. iOS
And there is no collision ip conflict with another device? Change the IP address to x.x.x.254 and test it again.
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
change what IP address to .254?

the IP address of 192.168.1.2 is the IP of the NAS which the docker is running on.
it's a static IP (via DHCP reservation), and the NAS runs many other dockers and services just fine. if you mean change the IP of the NAS then that is just not possible as it would break other services.

Here is the docker settings json export
 

Attachments

  • pihole-pihole1.zip
    1 KB · Views: 2
141
36
NAS
DS1815+
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. iOS
If you work with macvlan then you can use another IP address. Maybe you can try that. I have many containers running with macvlan network mode.
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
but your method should work though?
so why isn't it working for me.

personally i'm a little confused as to how this method could ever work, as DNS uses port 53 and at no point has the NAS been set to accept connections on port 53 using this method.
 
141
36
NAS
DS1815+
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. iOS
I should work yes, have two nasses and both have installed Adguard (but works also with pihole) and no problem with it.
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
but the NAS isn't listenting on port 53, so it won't work.
 
284
30
NAS
DS1019+ DSM6
Operating system
  1. Windows
Mobile operating system
  1. iOS
however doing a port check, the NAS is saying port 53 is open, however it suggest that traffic on port 53 is not being received into the pihole docker container

Code:
PS C:\Users\chenk> tnc 192.168.1.2 -port 53                                                                                                                                                                                                                                                                                                  ComputerName     : 192.168.1.2
RemoteAddress    : 192.168.1.2
RemotePort       : 53
InterfaceAlias   : WiFi
SourceAddress    : 192.168.1.84
TcpTestSucceeded : True
 
170
72
NAS
DS1621+, DS1522+, DS720+
Router
  1. MR2200ac
  2. RT6600ax
  3. WRX560
Operating system
  1. Linux
  2. macOS
  3. Windows
  4. other
Mobile operating system
  1. iOS
Just a thought - in the docker config, are you mapping the UDP & TCP ports 53 in the container to 53, or are they set to auto?

As you are running in host mode, you'd need to have them set to 53:53, not Auto:53 as well as to not be running Synology DNS Server (or anything else on the same port). ;-)
 

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.

Similar threads

I'm using adguard/adguardhome and crazymax/unbound. Point Adguard at the unbound box as the upbound server...
Replies
1
Views
831
Not sure what's happening but I went drastic. I shut down the PC and did a hard reset of the modem, "enter...
Replies
9
Views
648
This indeed is a breaking change. The whole function fix_capabilities() is responsible for the behavior...
Replies
10
Views
1,322
Finally got it dl'd and installed. Had to reconfigure the router.
Replies
4
Views
1,220
I've been running pihole in Docker on my DS920. The only issue I've had is with doing updates. I dl the...
Replies
0
Views
1,049
sorry, was away for a few days. yes, I was talking about the logs that you find in synology. but...
Replies
4
Views
2,197
  • Question
Pihole UI will not work on 80, as 80 is in use by Synology's nginx (as it is 443), just bind it to some...
Replies
8
Views
5,265

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Top