Hello, i’ve think i made a very tiny mistake.
Everything works almost perfect, let me explain my installation on hassio:
Install addon
add eth0 to the interface settings
add the addres of my duckdns instance to virtual host
start, so far so good.
turned the dhcp of my router off
Pi-Hole settings
dhcp settings: put in the same range as my router
dhcp settings: here i give the pi with hassio and pihole a static ip (same as i used before
turned one the dhcp of pi-hole
My device settings
Use the ip of the pi for as DNS adress.
From now on everytings works great.
I can see ads are blocked and a few dhcp ip’s are handed out to a few devices (the pi not yet).
After an hour or so the internet connection stops and i can’t do anything anymore.
When i go back to my router and put the DHCP on, i have acces to internet again…
What am i missing?
I think as soon as the pi get an ip from the pi-hole instance, the internet breaks.
Also removed the static DHCP lease for the pi with pi-hole, i thought maybe that was the thing causing the problem…
Did not work, after a few hours the internet connection is gone.
When i enable the DHCP on the router the internet connection is back immediately.
The first thing i see on the router is that the pi ip adres is directly added to the DHCP lease…
I also keep the DHCP service on the pi running, my laptop still used the pi-hole dns and dhcp addres…
Can i keep the 2 DHCP services running together?
I just installed this addon and I’m getting no queries in the query log.
I have an Intel NUC with Proxmox as Virtual environment and Hassio is installed in a VM with Ubuntu Server.
Previously I had another VM with Ubuntu Server and Pi-Hole installed directly on that OS with standard installation.
The interface is set to ens18 that I’ve got from ifconfig (or ip addr) and I don’t get error in the log, but I don’t get any queries. I’ve tried also leaving empty that field, but no changes.
I’ve changed all the DSN addresses on the router, and on all the other connected stuff, since before was another one.
I get this
and this is the log
DNS service is NOT running
[cont-init.d] pihole.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[18:33:02] INFO: Starting Pi-Hole FTL...
[2019-09-12 18:33:02.485 890] Using log file /var/log/pihole-FTL.log
[2019-09-12 18:33:02.486 890] ########## FTL started! ##########
[2019-09-12 18:33:02.486 890] FTL branch: master
[2019-09-12 18:33:02.486 890] FTL version: v4.3.1
[2019-09-12 18:33:02.486 890] FTL commit: b60d63f-dirty
[2019-09-12 18:33:02.486 890] FTL date: 2019-05-25 21:37:26 +0200
[2019-09-12 18:33:02.486 890] FTL user: pihole
[2019-09-12 18:33:02.486 890] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2019-09-12 18:33:02.486 890] SOCKET_LISTENING: only local
[2019-09-12 18:33:02.486 890] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2019-09-12 18:33:02.486 890] MAXDBDAYS: max age for stored queries is 365 days
[2019-09-12 18:33:02.486 890] RESOLVE_IPV6: Resolve IPv6 addresses
[2019-09-12 18:33:02.486 890] RESOLVE_IPV4: Resolve IPv4 addresses
[2019-09-12 18:33:02.486 890] DBINTERVAL: saving to DB file every minute
[2019-09-12 18:33:02.486 890] DBFILE: Using /etc/pihole/pihole-FTL.db
[2019-09-12 18:33:02.486 890] MAXLOGAGE: Importing up to 24.0 hours of log data
[2019-09-12 18:33:02.486 890] PRIVACYLEVEL: Set to 0
[2019-09-12 18:33:02.486 890] IGNORE_LOCALHOST: Show queries from localhost
[2019-09-12 18:33:02.486 890] BLOCKINGMODE: Null IPs for blocked domains
[2019-09-12 18:33:02.486 890] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2019-09-12 18:33:02.486 890] DBIMPORT: Importing history from database
[2019-09-12 18:33:02.486 890] PIDFILE: Using /var/run/pihole-FTL.pid
[2019-09-12 18:33:02.486 890] PORTFILE: Using /var/run/pihole-FTL.port
[2019-09-12 18:33:02.486 890] SOCKETFILE: Using /var/run/pihole/FTL.sock
[2019-09-12 18:33:02.486 890] WHITELISTFILE: Using /etc/pihole/whitelist.txt
[2019-09-12 18:33:02.486 890] BLACKLISTFILE: Using /etc/pihole/black.list
[2019-09-12 18:33:02.486 890] GRAVITYFILE: Using /etc/pihole/gravity.list
[2019-09-12 18:33:02.486 890] REGEXLISTFILE: Using /etc/pihole/regex.list
[2019-09-12 18:33:02.486 890] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[18:33:02] INFO: Starting PHP-FPM...
[2019-09-12 18:33:02.486 890] AUDITLISTFILE: Using /etc/pihole/auditlog.list[services.d] done.
[18:33:02] INFO: Starting PHP-FPM...
[2019-09-12 18:33:02.486 890] AUDITLISTFILE: Using /etc/pihole/auditlog.list[services.d] done.
[18:33:02] INFO: Starting NGinx....
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
[2019-09-12 18:33:02.486 890] MACVENDORDB: Using /etc/pihole/macvendor.db
[2019-09-12 18:33:02.486 890] PARSE_ARP_CACHE: Active
[2019-09-12 18:33:02.486 890] Finished config file parsing
[2019-09-12 18:33:02.487 890] Database version is 3
[2019-09-12 18:33:02.487 890] Database successfully initialized
[2019-09-12 18:33:02.487 890] Imported 0 queries from the long-term database
[2019-09-12 18:33:02.489 890] -> Total DNS queries: 0
[2019-09-12 18:33:02.489 890] -> Cached DNS queries: 0
[2019-09-12 18:33:02.489 890] -> Forwarded DNS queries: 0
[2019-09-12 18:33:02.489 890] -> Exactly blocked DNS queries: 0
[2019-09-12 18:33:02.489 890] -> Unknown DNS queries: 0
[2019-09-12 18:33:02.489 890] -> Unique domains: 0
[2019-09-12 18:33:02.489 890] -> Unique clients: 0
[2019-09-12 18:33:02.489 890] -> Known forward destinations: 0
[2019-09-12 18:33:02.489 890] Successfully accessed setupVars.conf
[2019-09-12 18:33:03.079 890] WARNING: Unable to write PID to file.
[2019-09-12 18:33:03.079 890] Continuing anyway...[12/Sep/2019:18:33:05 +0200] 200 -(192.168.1.4) GET /api.php?getForwardDestinations HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36)
[12/Sep/2019:18:33:05 +0200] 200 -(192.168.1.4) GET /api.php?getQueryTypes HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36)
pi hole was working stand alone on a RPi 3B+.
Now I wanted to use pi hole on hass.io running on a RPi4. The WebGUI started in hass.io is working great. But, by typing "https://IP.ADRESS.OF.HASSIO/admin I do not reach the pi hole WEBGUI from any other browser ?
And, what IPv4-Adresse do I have to put into my clients as the pi hole DNS-server ? Just “192.168.xxx.xxx” from the HA-RPi4 running pi hole ?
I never had the opportunity to set login credentials (name/pwd). The WEBGUI is asking for this.
In the past I had to set some options for optimizing SD card lifetime:
“sudo nano /etc/pihole/pihole-FTL.conf” and changing DBINTERVAL=1.0
I also deactivated swapping (Sudo service dphys-swapfile stop, free, sudo systemctl disable dphys- swapfile, sudo apt-get purge dphys-swapfile). Is this possbile anymore ?
But, I am still not able to reach the WebGui by typing https://192.168.178.1:82/admin. Reaching the interface from HA is no problem.
What am I doing wrong?
Edit: changing from https to http seems to work. But, pi hole is not accepting the login credentials. I typed in my HA login credentials. The right user should be named pihole, but I do not know the actual password and how to change that.
FWIW, in case it helps anyone else, nothing I did based on all the docs I read would help show local hostnames in pi-hole, UNTIL I switched to “listen on all interfaces” rather than “listen only on interface eth0”. I’m running DHCP on my AsusWRT-merlin router rather than the pi-hole itself, and I updated the host.list file there, turned on conditional forwarding, added all the proper IPs in the proper places according to everthing I read. But nowhere did I read anything about switching the interface listening behavior affecting this issue.
Hi all, I’ve been searching for a solution since yesterday, when I installed this add-on on Hass.io, but with no luck so I hope this wasn’t already ansered.
I can’t see hostnames in the add-on dashboard, no matter what I do, only IP addresses.
Pi-hole add-on is the DHCP server of my LAN and I can see it blocking requests from the clients.
I flagged “Listen on all interfaces, permit all origins” but all I obtained was to be able to manually call a nslookup on a LAN hostnames from the SSH add-on connection but manually forcing the DNS in the command.
I assume that for pihole to work my web browsing devices need to route their traffic via the rpi. How does this happen? For example my broadband router does not allow user defined dns addresses.
Am I misunderstanding something?