Hosts + local.list of PIHOLE?

Can anyone tell me how my configuration would be correct?

My fixed IP address on my PC is
192. 168. 178. 21

Does it have to look like this?
/etc/pihole/local. list

      1. 21 flashgordon
      1. 21 pi. hole

and in /etc/hosts?
127. 0. 0. 1 localhost
127. 0. 1. 1 flashgordon

      1. 1 fritz. box (router)
      1. 21 flashgordon
      1. 21 pi. hole
      1. 2 dnscrypt1
      1. 3 dnscrypt2

Are these settings set correctly?
/etc/pihole/setupVars. conf:

IPV4_ADDRESS=192. 168. 178. 21/24

7 posts were merged into an existing topic: My Pihole can't resolv anymore and blocking is offline

You're telling your hosts file that both could appear as that IP which will mess with your stats quite heavily iirc.

Depending on which BLOCKINGMOIDE you are using this could be a very minor issue or will block access to the blockiong page.

Why do you need a host name attached to 127.0.1.1?

This entry 127.0.1.1 was already there when I installed my operating system.
Can I remove 127.0.1.1 in hosts?

I don't understand what you mean right now.

Shall I
192. 168. 178. 21 flashgordon
192. 168. 178. 21 pi.hole

in hosts or take them out?

From what we can see there should not be any issues(i stand corrected on my post above). Is there something that is working that shouldn't be or vvice versa right now?

I installed FTLDNS, same error:

I put in SetupVars.conf: IPV4_ADDRESS=192.168.178.21/24 = Failed to resolve commandercialisgenerique.net via Pi-hole (192.168.178.21)

When I put in SetupVars.conf: IPV4_ADDRESS=0.0.0.0 = no error to resolve

! ! ! ! all green ! ! ! !
Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] ad.doubleclick.net.34645.9252.302br.net is 69.172.216.56 via localhost (127.0.0.1)
[✓] ad.doubleclick.net.34645.9252.302br.net is 69.172.216.56 via Pi-hole (0.0.0.0)
[✓] doubleclick.com is 172.217.19.78 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Pi-hole processes
[✗] dnsmasq daemon is inactive
[✓] lighttpd daemon is active
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Setup variables
PIHOLE_INTERFACE=enp4s0
#IPV4_ADDRESS=192.168.178.21/24
IPV4_ADDRESS=0.0.0.0
IPV6_ADDRESS=
QUERY_LOGGING=true
INSTALL_WEB=true
DNSMASQ_LISTENING=single
##//forward to: UNBOUND//##
PIHOLE_DNS_1=127.0.0.1#5353
#PIHOLE_DNS_1=127.0.2.1#513
#PIHOLE_DNS_2=127.0.2.2#513
#PIHOLE_DNS_1=84.200.69.80
#PIHOLE_DNS_2=84.200.70.40
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSSEC=true
TEMPERATUREUNIT=C
WEBUIBOXEDLAYOUT=traditional
API_EXCLUDE_DOMAINS=
API_EXCLUDE_CLIENTS=
API_QUERY_LOG_SHOW=all
API_PRIVACY_MODE=false

What can I do?
I can log into Pihole Dashboard, but I cant save no settings in pihole via dashboard.

IPv4 address(es) bound to the enp4s0 interface:
192.168.178.21/24 does not match the IP found in /etc/pihole/setupVars.conf

169.254.140.105/16 does not match the IP found in /etc/pihole/setupVars.conf

Failed to resolve guertelschnallen.com via Pi-hole (192.168.178.21)

ip route show

default via 192.168.178.1 dev enp4s0 proto static metric 100
169.254.0.0/16 dev enp4s0 proto kernel scope link src 169.254.140.105 metric 202
192.168.178.0/24 dev enp4s0 proto kernel scope link src 192.168.178.21 metric 100

I don't know what this address is: 169.254.0.0/16 dev
I have VirtualBox installed, maybe for it?

IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 100 0 0 enp4s0
169.254.0.0 0.0.0.0 255.255.0.0 U 202 0 0 enp4s0
192.168.178.0 0.0.0.0 255.255.255.0 U 100 0 0 enp4s0

I don't know what "169.254.0.0 0.0.0.0 255.255.0.0 U 202 0 0 enp4s0" is...

nslookup 192.168.178.21 (pihole address)
** server can't find 21.178.168.192.in-addr.arpa: NXDOMAIN

Now I can login with password into my pihole @ dashboard.

Now it shows up my network device and pihole address.


Are these settings correct?

What about with: "
Use Conditional Forwarding
IP of your router Local domain name"?

Must I put my Router IP in IP of your Router? 192.168.178.1? or leave it blank?

I don't know if I had a local domain name.

nslookup pi.hole
Server: 127.0.0.1
Address: 127.0.0.1#53

** server can't find pi.hole: NXDOMAIN

strange things :confused:

Networking
[✓] IPv4 address(es) bound to the enp4s0 interface:
192.168.178.21/24 matches the IP found in /etc/pihole/setupVars.conf
169.254.56.37/16 does not match the IP found in /etc/pihole/setupVars.conf (Use IPv6 ULA addresses for Pi-hole)

[✗] No IPv6 address(es) found on the enp4s0 interface.

[i] Default IPv4 gateway: 192.168.178.1

  • Pinging 192.168.178.1...
    [✓] Gateway responded.

[4711] is in use by pihole-FTL
[5333] is in use by pihole-FT
[53] is in use by dnsmasq
[9050] is in use by tor
[9665] is in use by java
[9666] is in use by java
[513] is in use by dnscrypt-
[513] is in use by systemd
[5333] is in use by pihole-FT

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
dig: '' is not a legal name (unexpected end of input)
[✗] Failed to resolve via localhost (127.0.0.1)
dig: '' is not a legal name (unexpected end of input)
[✗] Failed to resolve via Pi-hole (192.168.178.21)
[✓] doubleclick.com is 172.217.16.78 via a remote, public DNS server (8.8.8.8)

WHY???
[✗] Failed to resolve via localhost (127.0.0.1)
[✗] Failed to resolve via Pi-hole (192.168.178.21)

I don't know anymore...

Let's try not to complicate things and keep this all in one thread. Closing this one and you can continue at My Pihole can't resolv anymore and blocking is offline - #31 by PromoFaux

1 Like