Install a more recent dnsmasq on Raspbian Jessie

Update: 2018-08-06

As of v4.0, Pi-hole ships with _FTL_DNS, our fork of dnsmasq, which should restore compatibility with Raspbian Jessie. We still recommend installing a newer OS as Jessie is EOL anyway.

Please note that this tutorial is only meant for Rasbian Jessie, although it might (to some extend) also help with similar issues on other Debian versions. Do this at your own risk (however, the likeliness of a failure is rather small in our opinion).

First step: Download more recent version of dnsmasq compiled for Raspbian Jessie from the official sources


Second step: Ensure requirements are fulfilled

sudo apt-get install libnetfilter-conntrack3 libmnl0

Third step: Install downloaded packages

sudo dpkg -i dnsmasq-base_2.76-5+rpi1_armhf.deb
sudo dpkg -i dnsmasq_2.76-5+rpi1_all.deb

Fourth step: Verify it worked:

dnsmasq -v

should return:

Dnsmasq version 2.76  Copyright (c) 2000-2016 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify

You should now be able to use Pi-hole v3.3 on Raspbian Jessie.

Pi-hole v3.3 Released: It's "Extra" Special
FTL 3.0 fails to restart on Raspbian Jesse
Seit Update auf 3.2 geht nichts mehr :(
Query Log Wont Populate
Issues after latest update
Raspbian jessie issues, not logging, no graphs, have to restart ftl service
PiHole configured as DNS + DHCP and has internet access, but no traffic logged in web console
Empty /etc/pihole after re install
403 - Forbidden after install
Unable to use pihole on raspbian 8
Issue installing pihole
Update Failed - Please contact pihole
Dnsmasq Service Failing - PiHole not working
Pihole Start up Issues
Services won’t start after upgrade
Pi-hole only briefly works after reboot
So Long Pihole
Pi-hole showing zero clients, zero ads blocked yet pihole -t shows active connections
Pihole not blocking ads in adlists.list
FTL issue on new install
Web interface showing no stats
Can't update from 3.2.1 to latest version
Dnsmasq startet nicht - Grund 01-pihole.conf -> log-queries=extra | Token zgpnrjzunw
Dnsmasq startet nicht - Grund 01-pihole.conf -> log-queries=extra | Token zgpnrjzunw
Webinterface not reachable
Issue with dashboard and blocking ads
Pihole GUI not updating stats
Dnsmasq not starting since last week!
pihole-FTL 3.0 fails to start on Raspbian Jessie reboot
No data in query log
DNS service is not running on pi hole
DNS and FTL not running
Install Pi-hole on UniFi Cloud-Key : problem with install
Issue with DNSMasq
Frustrating fresh pihole installation, no internet
Why can't I run Pi-hole v3.3+ on Raspbian Jessie or with dnsmasq < v2.72?
Installation stopped
Admin page returns 403 Forbidden; new install
New install of 3.3 doesn't seem to be actually filtereing
Fresh install, DNS/FTP not running/offline
Raspbian jessie issues, not logging, no graphs, have to restart ftl service

Thanks a lot, worked here :slight_smile:

1 Like

Thx, working great on my odroid-jessie (Odroid c1 with Debian jessie for c1) Pi hole v 3.3 is running without any issues now (i had to downgrade before)

1 Like

Sadly it does not update on my Synology NAS DS-413j (seems indeed to be this "Jessie"-thingie)

dnsmasq stays at 2.72

This fix is only intended for Raspbian Jessie.

2 posts were split to a new topic: Update of dnsmasq failed

Any fix for synology?

These instructions are specific to Rasbpian Jessie. We don't have anything for Synology at this time. Feel free to check out the FTLDNS beta, which should actually work better than the version you may be on now with the issues.

i wonder why it is not already included in the armhf repo from Debian.
Repo for raspbian, for example, includes an up-to-date version of dnsmasq

It's just the Debian way of doing things.

On their current stable "stretch" and obsolete (but supported) "jessie" releases, security issues are addressed as they come up, but the feature-set remains pretty well as constant as can be maintained for the life of the release. Security patches are ported back to older versions of software, fixing any problems but not adding any new features.

For people who want newer features, the testing release "sid" is generally quite robust, but is not stable in the sense that new features are added along the way.

For people who don't mind probable breakage from time to time, there is also the unstable release "testing", with constant updates and new features.


I guess i have to update orange pi following similar procedure as somebody did here

Thanks for your answer

is there any update for ubuntu 16.04 xenial as how to manually upgrade dnsmasq to a version that supports log-queries=extra?

After this manual update, the dnsmasq service is now starting automatically and the only thing pending was having pihole-FTL starting automatically on system reboot, which for some reason was not happening.

I had to run the following command after each reboot

sudo service pihole-FTL

I read on another post (lost link) that reinstalling pihole fixed the issue.

to uninstall

pihole uninstall

to install

curl -sSL | bash

Now pihole-FTL service starts automatically after system reboot.