[SOLVED] DNS resolution is currently unavailable

Hi!

When I try to update gravity, appears 2 errors:

  • [✗] DNS resolution is currently unavailable*
  • [✗] DNS resolution is not available*

It is a extrage situation. pi-Hole is working properly, in my home network, all the devices are flowing thru it, and about 90% of ads, are blocked.

I check different forums, and seem that the issue is realted with port 53.

Also, I have a Portainer platform running on a OpenMediaVault, and now I'm not able to pull any image, and I have also a error message about pot 53..

Both situations are something regarded about port 53. ¿?
I changed NAT configuration on my router to send 53TCP/UDP connections to pi-hole IP address.

pi-Hole is running on a Orange Pi Zero Board, I started to use v4, and now I'm with a fresh new installation with v5.

pi-Hole works as a DCHP server, and DHCP server option is not enabled in my router.

I tried to generate a debug file, but when the pi-hole finishes, it is not able to upload to the server, then, I don't have a Token.

[✗] There was an error uploading your debug log.

  • Please try again or contact the Pi-hole team for assistance.
  • A local copy of the debug log can be found at: /var/log/pihole_debug.log

Thanks for your support!

SinE80

3 Likes

Any help will be helpfull... thanks in advance! :sweat_smile:

Well, I assume that I'm a newbie.

Solution:

Connect thru putty
Login as root user

then edit resolv.conf as:

#nano /etc/resolv.conf
or
#sudo nano /etc/resolv.conf

And edit the name server to:

# Generated by NetworkManager
search home
nameserver 127.0.0.1

Now, also I can upload a debug file, for your information: x75abjglcd

Regards

7 Likes

This solution worked for me - thank you for posting! However, I have two questions about it:

  1. Why does this change need to be made? My Pihole installation is fresh out the box, so shouldn't this be set correctly in the first place?

  2. I am running Pihole in a Docker container and when I restarted it the changes I had made to the file had reverted. How do I make the change in resolv.conf permanent?

Thank you

2 Likes

How does one go about editing this file? I am having the same issue and cannot reconfigure pihole in any way as it stands.

1 Like

A post was split to a new topic: Cannot change assigned nameserver for the Pi-hole host

If you are running docker with docker-compose, first run:

sudo docker exec -it pi-hole /bin/bash

Where pi-hole is the name of your container.

Do:

cat /etc/resolv.conf

Make note of everything in this file, or copy and paste.

Create a resolv.conf file in ypur docker-compose.yml directory and paste it in. Change nameserver to 127.0.0.1

Add a volume in docker-compose pointing this file to /etc/resolv.conf

Should look like:

 - './resolv.conf:/etc/resolv.conf'

Restart the container.

Exec back into the container and try an apt update, if it works you should be good.

6 Likes

Excellent! Now it works like a charm.

1 Like

Prefect, thanks. This fixed things for me.