Question about DNS

Pi-hole may not have been fully installed. It should have installed a sudoers file to /etc/sudoers.d/pihole with the following line:

www-data ALL=NOPASSWD: /usr/local/bin/pihole

Create that file with that content, then set the permissions:

sudo chown root:root /etc/sudoers.d/pihole
sudo chmod 440 /etc/sudoers.d/pihole

The file is there, the rights are correct.

Can I simply modify the dns in the conf file?
I do not really need the web front end

Yes. Then restart pihole with sudo service pihole-FTL restart

If you modify the DNS servers, you will need to run pihole -g pihole -r to apply the settings.

Edit: pihole -g does not regenerate the necessary dnsmasq config files, use pihole -r

I have changed the DNS at /etc/dnsmasq.d/01-pihole.conf, but the web frontend still shows google as the DNS.
Then I modified /etc/pihole/setupVars.conf:

PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.0.20/24
IPV6_ADDRESS=
PIHOLE_DNS_1=192.168.0.1
#PIHOLE_DNS_1=8.8.8.8
#PIHOLE_DNS_2=8.8.4.4
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true
BLOCKING_ENABLED=true

Now the web frontend shows the correct settings

It seems that I have a right problem.
If I try to add an entry into the blacklist with the web front end I receive:
Failure! Something went wrong, see output below:

But below is empty.
On the console I can add an entry with sudo nano, and it shows up in the black list on the web front end.

What am I doing wrong?
Can i change the web front end user?

Please generate a debug log, upload it and post the token. Thanks.

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