# DNSmasq version check during install

**URL:** <https://discourse.pi-hole.net/t/dnsmasq-version-check-during-install/7868>\
**Category:** Closed or Out Of Scope\
**Tags:** v3-3\
**Created:** [March 9, 2018, 2:22pm UTC](https://discourse.pi-hole.net/t/dnsmasq-version-check-during-install/7868 "2018-03-09T14:22:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonmcnair](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/7cd45c/32.png) [@simonmcnair](https://discourse.pi-hole.net/u/simonmcnair)\
**Post date:** [March 9, 2018, 2:22pm UTC](https://discourse.pi-hole.net/t/dnsmasq-version-check-during-install/7868/1 "2018-03-09T14:22:51Z")

</div>

HI,  
Pi hole wasn't installing. DNS mas wouldn't start. On investigation the parameter log-queries=extra was added in dnsmasq version 2.73.

My LXC container is running turnkeylinux Debian 8 only has version 2.72 installed and results in the silent error:

root@PiHole /etc# /etc/init.d/dnsmasq start  
[....] Starting DNS forwarder and DHCP server: dnsmasq  
dnsmasq: extraneous parameter at line 37 of /etc/dnsmasq.d/01-pihole.conf  
failed!

It would be nice to do a version check to stop people wasting hours of their lives (not that I'm complaining, I'm thinking of anyone else) due to this.

Also the install script fails silently and has no debug or useful error logs. It would be nice to have some debug options.

Cheers, thanks for all the hard work  
Simon

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [March 14, 2018, 12:02am UTC](https://discourse.pi-hole.net/t/dnsmasq-version-check-during-install/7868/2 "2018-03-14T00:02:29Z")

</div>

Please see:

> <https://github.com/pi-hole/pi-hole/pull/1968>
>
> \*\*By submitting this pull request, I confirm the following:\*\* 
> \*please fill any… appropriate checkboxes, e.g: \[X\]\*
> 
> \- \[x\] I have read and understood the \[contributors guide\](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md), as well as this entire template.
> \- \[x\] I have made only one major change in my proposed changes.
> \- \[x\] I have commented my proposed changes within the code.
> \- \[x\] I have tested my proposed changes, and have included unit tests where possible.
> \- \[x\] I am willing to help maintain this change if there are issues with it later.
> \- \[x\] I give this submission freely and claim no ownership.
> \- \[x\] It is compatible with the \[EUPL 1.2 license\](https://opensource.org/licenses/EUPL-1.1)
> \- \[x\] I have squashed any insignificant commits. (\[\`git rebase\`\](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
> 
> Please make sure you \[Sign Off\](https://github.com/pi-hole/pi-hole/wiki/How-to-signoff-your-commits.) all commits. Pi-hole enforces the \[DCO\](https://github.com/pi-hole/pi-hole/wiki/Contributing-to-the-project).
> 
> \---
> \*\*What does this PR aim to accomplish?:\*\*
> 
> Add an exception in the update checker script to discard a possibly available update when the \`dnsmasq\` version is too low for extra logging and FTL's version is smaller than v4.0
> 
> \*\*How does this PR accomplish the above?:\*\*
> 
> We save the upstream version \*only\* if either
> \- the \`dnsmasq\` version is at least \`2.73\`, or
> \- the upstream version of \`FTL\` is at least \`v4.0\`
> 
> If both tests fail (\`dnsmasq\` is too old \*\*and\*\* \`FTL\` is not yet at \`v4.0\`), then we save the current tags as the most recent ones. By this, it will never be shown that an update would be available.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [November 22, 2020, 4:24pm UTC](https://discourse.pi-hole.net/t/dnsmasq-version-check-during-install/7868/3 "2020-11-22T16:24:56Z")

</div>

Since v4.0 pihole includes dnsmasq as part of pihole-FTL.  
So this FR is might be outdated?

---

<div class="post-metadata">

**Author:** ![PromoFaux](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/promofaux/32/1545_2.png) [@PromoFaux](https://discourse.pi-hole.net/u/PromoFaux)\
**Post date:** [November 22, 2020, 5:19pm UTC](https://discourse.pi-hole.net/t/dnsmasq-version-check-during-install/7868/4 "2020-11-22T17:19:01Z")

</div>

Yeah, no need for this one any more.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [November 22, 2020, 5:26pm UTC](https://discourse.pi-hole.net/t/dnsmasq-version-check-during-install/7868/5 "2020-11-22T17:26:06Z")

</div>

Closed on November 22, 2020, 5:26pm UTC


