[RESOLVED] Install pihost on Synology

Hello,

I'm trying ton install pihost on my synology NAS with docker but it not work.

I have write custom docker-compose.yml file in order to add my pihole DNS to my network :

version: "3.8"

services:
  pihole:
    container_name: pihole
    image: pihole/pihole:2021.10
    restart: always
    environment:
      TZ: Europe/London
      WEBPASSWORD: 'secretPassword'
      WEB_PORT: 82
      PIHOLE_DNS_: '80.67.169.12;80.67.169.40'
    volumes:
      - pihole:/etc/pihole/
      - dnsmasq:/etc/dnsmasq.d/
    network_mode: "host"
    cap_add:
      - NET_ADMIN
volumes:
  pihole:
  dnsmasq:

So when i try to configure my dns IP into my mac, the network seems to be broken and i can't resolve domains.

When i generate debug log, i read this error :

*** [ DIAGNOSING ]: Networking
[✗] No IPv4 address(es) found on the eth0 interface.

[✗] No IPv6 address(es) found on the eth0 interface.

[i] Default IPv4 gateway: 192.168.2.1
   * Pinging 192.168.2.1...
[✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)

[i] Default IPv6 gateway: fe80::6d4:c4ff:fec9:4b38
   * Pinging fe80::6d4:c4ff:fec9:4b38...
[✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)

It's very strange because gravity update work fine so...

Any idea ?

In fact, i have found my response. It necessary ton add two others environment variables :

      ServerIP: 192.168.2.4
      DNSMASQ_LISTENING: local

ServerIp must be the synology IP address.