Pihole ssh connect on Qnap NAS

Hi,
I am new at pihole.
I have installed pihole in Container Station on my Qnap TS-251B.
When I try to update Gravity list it gives me an error:
[✗] DNS resolution is currently unavailable
[✗] DNS resolution is not available

I tried to edit file resolv.conf (nameserver 127.0.0.1, now I have 127.0.0.11) from Container Station Execute Console but it does not have text editors (vi, vim, nano ...). And connecting from another computer does not work. Qnap NAS has different IP than pihole.
I also tried to execute pihole -d in Container Station Execute Console but it won't upload it. So I copied and upload it on pastebin (link below).

Thank you for the help!

Debug Token:
"My token"

I think the issue you're seeing is down to that resolv.conf. Is there any option in the QNAP interface to control the settings that end up in this file? Some UI section which lets you specify the nameservers for that container?

If not, is sudo installed? Are you able to become root with

$ sudo -i

or can you use

$ su - root

If you can then you overwrite resolv.conf with your own

# echo "nameserver 1.1.1.1" > /etc/resolv.conf

Great! This works. The only problem is when Pihole restarts, the IP returns to 127.0.0.11 and it stops working. Why does the file change to its original?

I suspect the container has its own settings defined in the QNAP somewhere, and when the container restarts those settings are used to populate key files such as that one. Something like a docker YAML file.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.