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
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.
Go to “Control Panel→Task Scheduler→Create→Scheduled Task→User-defined script”
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 “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.