Expected Behaviour:
Pihole device announces it's DNS name as that set in the "pi-hole hostname" box on the settings page.
Actual Behaviour:
Pihole is announcing its DNS name (as checked via nslookup and ping -a [IPADDRESS]) as the first entry in the Exact blacklist. I.E. If blacklist is blank, and a client runs ipconfig /flushdns followed by nslookup it shows the DNS server to be called whatever's in the hostname box on the settings page. If an entry is made to the exact blacklist, and ipconfig /flushdns followed by nslookup are run on the client again, the DNS server's name is that entry on the blacklist.
Debug Token:
Unnecessary I feel, but can be supplied.
DL6ER
October 15, 2017, 6:31pm
2
Thanks for your report. This comes from a dnsmasq bug and has already been fixed in the current development version of Pi-hole.
Please change your /etc/dnsmasq.d/01-pihole.conf from
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/local.list
addn-hosts=/etc/pihole/black.list
to
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
i.e. make local.list the last of the three entries in that file.
See also
development ← fix/ad-domain-hostname
opened 04:18PM - 25 Jun 17 UTC
**By submitting this pull request, I confirm the following (please check boxes, … eg [X]) _Failure to fill the template will close your PR_:**
***Please submit all pull requests against the `development` branch. Failure to do so will delay or deny your request***
- [x] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).
- [x] I have checked that [another pull request](https://github.com/pi-hole/pi-hole/pulls) for this purpose does not exist.
- [x] I have considered, and confirmed that this submission will be valuable to others.
- [x] I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
- [x] I give this submission freely, and claim no ownership to its content.
**How familiar are you with the codebase?:**
10
---
Fixes the bug found by [Reddit](https://www.reddit.com/r/pihole/comments/6j3az9/urls_in_my_blacklist_are_showing_up_as_my_default/)
_This template was created based on the work of [`udemy-dl`](https://github.com/nishad/udemy-dl/blob/master/LICENSE)._
Thanks for that - sorted. So the bug is in dnsmasq, and changing the list load order masks the effect of the bug?
DL6ER
October 15, 2017, 9:10pm
4
Exactly. Is it now correct for you?