| Next revision | Previous revision |
| hw:synology:container:pihole [2025/07/16 11:09] – created rplecko | hw:synology:container:pihole [2025/07/16 11:24] (current) – rplecko |
|---|
| - Install "Container Manager" via Synology "Package Center" | * Install "Container Manager" via Synology "Package Center" |
| - Add your current DNS server to "Control Panel->Network->General". Check "Manually Configure DNS Server" and add your preferfed DNS server | * Add your current DNS server to "Control Panel->Network->General". Check "Manually Configure DNS Server" and add your preferfed DNS server |
| - Go to the "File Station" and open the docker folder. Inside the docker folder, create one new folder and name it **pihole**. Follow the instructions in the image below. Note: only lowercase, not uppercase letters. | * Go to the "File Station" and open the docker folder. Inside the docker folder, create one new folder and name it **pihole**. Follow the instructions in the image below. Note: only lowercase, not uppercase letters. |
| - Now create two new folders inside the pihole folder that you previously created at STEP 4 and name them dnsmasq.d and pihole. Follow the instructions in the image below. Note: only lowercase, not uppercase letters. | * Now create two new folders inside the pihole folder that you previously created at STEP 4 and name them dnsmasq.d and pihole. Follow the instructions in the image below. Note: only lowercase, not uppercase letters. |
| - Go to "Control Panel->Task Scheduler->Create->Scheduled Task->User-defined script" | * Go to "Control Panel->Task Scheduler->Create->Scheduled Task->User-defined script" |
| - Once you click on User-defined script a new window will open. | * Once you click on User-defined script a new window will open. |
| - Tab "General" - In the Task field type in “Install Pi-hole“. Uncheck “Enabled” option. Select root User. | * Tab "General" - In the Task field type in “Install Pi-hole“. Uncheck “Enabled” option. Select root User. |
| - Tab "Schedule" - Select Run on the following date then select “Do not repeat“. | * Tab "Schedule" - Select Run on the following date then select “Do not repeat“. |
| - Tab "Task Settings" - Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that click OK. | * Tab "Task Settings" - Check “Send run details by email“, add your email then copy paste the code below in the Run command area. |
| |
| <code> | <code> |
| pihole/pihole | pihole/pihole |
| </code> | </code> |
| - Set your password to "FTLCONF_webserver_api_password" | * Before clicking "OK" do the following changes |
| - Set your time zone to "TZ" | * Set your password to "FTLCONF_webserver_api_password" |
| - Set your UID to "PIHOLE_UID" (how to find my UID and GID ?) | * Set your time zone to "TZ" |
| - Set your GID to "PIHOLE_GID" (how to find my UID and GID ?) | * Set your UID to "PIHOLE_UID" [[hw:synology:howtofind_gid_uid|(how to find my UID and GID ?)]] |
| - Press "OK" and "Submit" with your DSM Password | * Set your GID to "PIHOLE_GID" [[hw:synology:howtofind_gid_uid|(how to find my UID and GID ?)]] |
| - Select your "Install Pi-hole" tast and click on "Run" Tab | * Press "OK" and "Submit" with your DSM Password |
| - Confirm and wait a few seconds / minutes. It will depend on your Internet speed connection. | * Select your "Install Pi-hole" tast and click on "Run" Tab |
| - Now open your browser and type in http://Synology-ip-address:8080/admin/login Type in the Password (FTLCONF_webserver_api_password) that you have previously created. Click Log in. | * Confirm and wait a few seconds / minutes. It will depend on your Internet speed connection. |
| - Ypu are in ! | * Now open your browser and type in http://Synology-ip-address:8080/admin/login Type in the Password (FTLCONF_webserver_api_password) that you have previously created. Click Log in. |
| | * You are in ! |
| |