Dns not listening. Complete noob trying to play with this for the first time.
Token: https://tricorder.pi-hole.net/9klo8d6nbi
FTL is not properly installed
Dec 23 05:25:06 raspberry pihole-FTL[3828]: sh: 1: /usr/bin/pihole-FTL: not found
Please run pihole -r
and post the output.
What device are you running? Is it bare metal or a VM setup?
Yes. Its a bare metal instal on an some old parts I had lying around. i’ve always used windows so linux is new to me. I have installed raspbian x86 onto this machine. I ran -r and this is what it came up with. Thank you for your help. i would be lost otherwise.
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.3.19-1~deb10u1
[i] Repair option selected
[✓] Checking apt-get for upgraded packages... up to date!
[i] Installer Dependency checks...
[✓] Checking for dhcpcd5
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for whiptail
[✓] Checking for dnsutils
[✓] Supported OS detected
[i] SELinux not detected
[i] Performing reconfiguration, skipping download of local repos
[✓] Resetting repository within /etc/.pihole...
[✓] Resetting repository within /var/www/html/admin...
[i] Main Dependency checks...
[✓] Checking for cron
[✓] Checking for curl
[✓] Checking for iputils-ping
[✓] Checking for lsof
[✓] Checking for netcat
[✓] Checking for psmisc
[✓] Checking for sudo
[✓] Checking for unzip
[✓] Checking for wget
[✓] Checking for idn2
[✓] Checking for sqlite3
[✓] Checking for libcap2-bin
[✓] Checking for dns-root-data
[✓] Checking for libcap2
[✓] Checking for lighttpd
[✓] Checking for php7.3-common
[✓] Checking for php7.3-cgi
[✓] Checking for php7.3-sqlite3
[✓] Checking for php7.3-xml
[✓] Checking for php7.3-json
[✓] Checking for php7.3-intl
[✓] Enabling lighttpd service to start on reboot...
[✓] Checking for user 'pihole'
[i] FTL Checks...
[✓] Detected x86_64 processor
[i] Checking for existing FTL binary...
/etc/.pihole/automated install/basic-install.sh: line 2543: /usr/bin/pihole-FTL: No such file or directory
[✓] Downloading and Installing FTL
[✓] Installing scripts from /etc/.pihole
[i] Installing configs from /etc/.pihole...
[i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
[i] Installing blocking page...
[✓] Creating directory for blocking page, and copying files
[i] Backing up index.lighttpd.html
No default index.lighttpd.html file found... not backing up
[✓] Installing sudoer file
[✓] Installing latest Cron script
[✓] Installing latest logrotate script
[i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old
[✓] man pages installed and database updated
[i] Testing if systemd-resolved is enabled
[i] Systemd-resolved is not enabled
[✓] Restarting lighttpd service...
[✓] Enabling lighttpd service to start on reboot...
[i] Restarting services...
[✓] Enabling pihole-FTL service to start on reboot...
[✓] Restarting pihole-FTL service...
[✓] Deleting existing list cache
[i] Neutrino emissions detected...
[✓] Pulling blocklist source list into range
[✓] Preparing new gravity database
[i] Using libz compression
[i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
[✓] Status: Retrieval successful
[i] Received 58787 domains
[i] Target: https://mirror1.malwaredomains.com/files/justdomains
[✗] Status: Not found
[✗] List download failed: no cached list available
[✓] Storing downloaded domains in new gravity database
[✓] Building tree
[✓] Swapping databases
[i] Number of gravity domains: 58787 (58787 unique domains)
[i] Number of exact blacklisted domains: 0
[i] Number of regex blacklist filters: 0
[i] Number of exact whitelisted domains: 0
[i] Number of regex whitelist filters: 0
[✗]
[✓] Cleaning up stray matter
[✓] Restarting DNS server
[✗] DNS service is NOT listening
/opt/pihole/updatecheck.sh: line 77: /usr/bin/pihole-FTL: No such file or directory
/opt/pihole/updatecheck.sh: line 91: /usr/bin/pihole-FTL: No such file or directory
[i] The install log is located at: /etc/pihole/install.log
Update Complete!
Current Pi-hole version is v5.2.1.
Current AdminLTE version is v5.2.1.
/opt/pihole/version.sh: line 19: /usr/bin/pihole-FTL: No such file or directory
/opt/pihole/version.sh: line 122: /usr/bin/pihole-FTL: No such file or directory
Invalid Option! Try 'pihole -v --help' for more information.
What's the output of
ls -lhs /usr/bin/pihole-FTL
sudo dpkg --print-architecture
uname -m
pi@raspberry:~ $ ls -lhs /usr/bin/pihole-ftl
ls: cannot access '/usr/bin/pihole-ftl': No such file or directory
pi@raspberry:~ $ sudo dpkg --print-architecture
i386
pi@raspberry:~ $ uname -m
x86_64
See here:
You need to install sudo apt install libc6:amd64
and run the installer again
curl -sSL https://install.pi-hole.net | bash
that fixed that issue. it says that everything is running but i'm still getting adds on websites. i'm wondering if i'm not pointing my local computers to the pihole
Maybe. Please generate a debug log with pihole -d
and post the token here.
192.168.50.132
dns-server: 192.168.50.1
Your router distributes it's own IP as DNS server via DHCP. If you want all clients sending requests directly to pihole, you need to change this setting. Remeber, you need to dis/reconnect your clients from the network after you made DHCP changes to pick up the new settings
But something is still wrong
[2020-12-23 14:24:07.787 1037M] SQLite3 message: no such table: ftl in "SELECT VALUE FROM ftl WHERE id = 0;" (1)
[2020-12-23 14:24:07.787 1037M] Encountered prepare error in db_query_int("SELECT VALUE FROM ftl WHERE id = 0;"): SQL logic error
[2020-12-23 14:24:07.787 1037M] Database not available, please ensure the database is unlocked when starting pihole-FTL !
[2020-12-23 14:24:07.787 1037M] SQLite3 message: no such table: queries in "SELECT * FROM queries WHERE timestamp >= ?" (1)
[2020-12-23 14:24:07.787 1037M] DB_read_queries() - SQL error prepare: SQL logic error
[2020-12-23 14:24:07.787 1037M] -> Total DNS queries: 0
You could try to stop pihole, remove the database and start pihole again
sudo service pihole-FTL stop
sudo rm /etc/pihole/pihole-FTL.db
sudo service pihole-FTL start
okay we are making progress. thank you so much. i set up pihole as a dns server in my router. while i'm getting activity thru pihole, cnn blocks adds, chicago tribune doesn't. how does it look now?
https://tricorder.pi-hole.net/fp0fee14j9
Looks better
dns-server: 192.168.50.132
dns-server: 192.168.50.1
router: 192.168.50.1
Your router still offers it's own IP as DNS server. Offering another server next to pihole is not recommended. If you offer two DNS servers it doesn't mean the second one is used only as fallback but the client decides which server to choose whenever it wants. This will lead inevitably to clients bypass pihole.
Which ads are blocked depend on the domains on your adlists. If CNN offers ads from one domain that is on your adlist it will be blocked. If chicago tribune is offering ads from a domain that is not on your adlist it won't be blocked.
Note: Not all ads can be blocked with pihole. If a site is distributing ads from the same domain as the content you can not block the ads only. Best example is Youtube. You can block it entirely, but not the ads only.
okay gotcha. i know i'm a pain and i'm sorry. whaw would be your recommendation to fix the dns issue? i manually set a dns server in my router to point to pihole. since this isn't recommended, what would be a recommended way to do it properly. I'm hoping this thread will help others along with myself
how do i remove my router as a dns server? or better yet should i?
Setting pihole as DNS via DHCP is recommended - you did it right.
This is the tricky part. It depends on your router model - some might always advertise themself as DNS server; without giving you the ability to stop this behavior. If it is this way, you could to a trick:
Set the Pihole also as upstream DNS server for your router (WAN side). This way, all clients which will pick your router as DNS server (via DHCP) will send their queries first to the router wich will forward them to pihole. Just make sure, your router is not one of pihole's upstream DNS servers - this would create a DNS loop.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.