I apologise for having to ask as this is seemingly a common issue, but I have tried everything I have found recommended and still, with a fresh install of everything, I can't get to to work.
I have edited the resolv.conf file with:
sudo nano /etc/dhcpcd.conf
added "static domain_name_servers=8.8.4.4 8.8.8.8" to the bottom of the file then:
sudo service dhcpcd restart
Then I have checked and the resolv.conf file is now showing 8.8.8.8 and 8.8.4.4.
Being a complete beginner, that is about as far as my troubleshooting abilities go. Any help would be greatly appreciated.
Now returns "curl: (6) Could not resolve host: install.pi-hole.net". Fine to reinstall everything from the beginning again (as I have already twice) but if there is a better way, please let me know.
I assume from the above initial error that the install did not complete. From what I understand, "pihole -d" is a pihole specific command, so all I get is:
pi@pihole:~ $ pihole -d
-bash: pihole: command not found
So, I was having trouble doing this before due to permissions I think, so I used a method I found somewhere else to edit resolv.conf. So right now my resolv.conf file reads:
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
The method was by:
sudo nano /etc/dhcpcd.conf
then adding
static domain_name_servers=8.8.4.4 8.8.8.8
to the bottom of the file.
Happy to start from the beginning again if I have messed something up.
Okay great. I had another look at dhcpcd.conf and it seems three lines had been added at some point after I edited the file in the first place. So it had:
appended to the end. I removed "static domain_name_servers=127.0.0.1" and ran
sudo service dhcpcd restart
and the resolv.conf file now contains the DNS service I chose (8.8.8.8 and 8.8.4.4).
Long story short, the install worked and I got the below. The web interface loads. Should I be concerned that IPv6 was not configured? I had selected to configure IPv6 during the install.
Unable to complete update, please contact Pi-hole Support
It seemed that the github URL has been part of one of my Adlists. Disabling the pihole blocking bad domains/URLs before I was starting "pihole -up" fixed it for me.
I just ran into the same issue... I wonder if this might be because i haven't updated my pihole in a very long time?
Did you do an update or a fresh installation?