Location of dhcpcd.conf? Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
vbarter
Posts: 24
Joined: Mon Feb 17, 2020 10:15 am

Location of dhcpcd.conf?

Post by vbarter »

Hey I'm trying to follow the DNS Leak portion of this vpn guide but I am having trouble locating the dhcpcd.conf file. It's currently not in /etc/ and I'm not sure where else it would be. I am currently using dietpi-vpn

https://pimylifeup.com/raspberry-pi-surfshark/
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Location of dhcpcd.conf?

Post by Joulinar »

DietPi is not using dhcpcd. Configuration of local IP as well as DNS server could be done using dietpi-config. At the end, DNS server is set in /etc/resolv.conf.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
vbarter
Posts: 24
Joined: Mon Feb 17, 2020 10:15 am

Re: Location of dhcpcd.conf?

Post by vbarter »

Joulinar wrote: Thu Oct 21, 2021 7:38 am DietPi is not using dhcpcd. Configuration of local IP as well as DNS server could be done using dietpi-config. At the end, DNS server is set in /etc/resolv.conf.
This is what I have in my file:

Code: Select all

domain lan
search lan
nameserver 192.168.1.100
nameserver 192.168.1.200
nameserver 192.168.1.201
I know those 3 IPs starting in 192 lead to all 3 different pi holes, I want to change this to something else but after I did and rebooted, the changes don't stick. Where else should I be making changes?
vbarter
Posts: 24
Joined: Mon Feb 17, 2020 10:15 am

Re: Location of dhcpcd.conf?

Post by vbarter »

Going through dietpi-config did the trick. Thanks!
Post Reply