Update system
#======#======#====
apt update -y
Install required packages
#======#=======#=======
apt install curl -y
Install Pi-Hole
#======#======#=========
curl -sSL https://install.pi-hole.net | bash
Change password
#==========#======
pihole -a -p admin (here admin is my password. replace admin with your password)
Install unbound
#==========#=====
apt install unbound -y
Config Unbound
#==========#====
nano /etc/unbound/unbound.conf.d/pi-hole.conf
Unbound configuration link
#========#========#=====
https://docs.pi-hole.net/guides/dns/u...
Restart the service
#=======#=======#=====
systemctl restart unbound
Start services at boot
#==========#=========#====
systemctl enable unbound
Show services status
#==========#=========#====
systemctl status unbound