Page 2 of 2

Re: nameserver into dhcpcd.conf vs resolv.conf

Posted: Thu Apr 22, 2021 11:56 pm
by Joulinar
probably PiHole installer is writing it down based on what was selected during install process.

Re: nameserver into dhcpcd.conf vs resolv.conf

Posted: Fri Apr 23, 2021 12:07 am
by vonloschz
base on pi-hole git .... the setDHCPCD fonction inside pi-hole/automated install/basic-install.sh create this file.

Re: nameserver into dhcpcd.conf vs resolv.conf

Posted: Fri Apr 23, 2021 12:13 am
by Joulinar
yep that's the script DietPi is using to install PiHole. Basically that's what is used

Code: Select all

INSTALL_URL_ADDRESS='https://install.pi-hole.net'
which will result in

Code: Select all

https://raw.githubusercontent.com/pi-hole/pi-hole/master/automated%20install/basic-install.sh

Re: nameserver into dhcpcd.conf vs resolv.conf

Posted: Fri Apr 23, 2021 12:23 am
by vonloschz
I re-installed and set a static ip on dietpi.
will see if pi-hole create again this dhcpcd.conf.

Re: nameserver into dhcpcd.conf vs resolv.conf

Posted: Fri Apr 23, 2021 12:18 pm
by Joulinar
in the past PiHole even changed DNS resolution to localhost but this changed in meantime