Simon Kelley 0e9de57cc1 Fix hostname_issubdomain() confusion.
commit 1269f074f86bb959863012063060a3a082d37dc4 broke
hostname_issubdomain() and then accidentally fixed
some of the problems by inverting the argument order
in the new uses of the function it introduced.
All the pre-existing calls to hostname_issubdomain()
were left in a non-working state.

This fixes hostname_issubdomain() back to the state
before 1269f074f86bb959863012063060a3a082d37dc4, adds
some logic to give correct answers when comparing
to the root domain, and gets right the new calls to
hostname_issubdomain()  added in
1269f074f86bb959863012063060a3a082d37dc4

Thanks to Jean Thomas for spotting this problem.

Signed-off-by: Dominik <dl6er@dl6er.de>
2026-06-08 19:55:57 +02:00
2026-05-11 22:13:16 +02:00
2026-05-12 19:54:47 +02:00
2026-06-08 19:55:57 +02:00
2026-06-08 19:55:34 +02:00
2019-06-08 18:35:10 +02:00
2026-05-11 19:12:24 +02:00
2017-06-03 15:05:41 +02:00
2025-03-06 15:04:02 +02:00

Pi-hole logo
Network-wide ad blocking via your own Linux hardware

FTLDNS logo

FTLDNS (pihole-FTL) provides an interactive API and also generates statistics for Pi-hole®'s Web interface.

  • Fast: stats are read directly from memory by coupling our codebase closely with dnsmasq
  • Versatile: upstream changes to dnsmasq can quickly be merged in without much conflict
  • Lightweight: runs smoothly with minimal hardware and software requirements such as Raspberry Pi Zero
  • Interactive: our API can be used to interface with your projects
  • Insightful: stats normally reserved inside of dnsmasq are made available so you can see what's really happening on your network

Official documentation

The official FTLDNS documentation can be found here.

Installation

FTLDNS (pihole-FTL) is automatically installed when installing Pi-hole.

IMPORTANT

FTLDNS will disable any existing installations of dnsmasq. This is because FTLDNS is dnsmasq + Pi-hole's code, so both cannot run simultaneously.

S
Description
Languages
C 96.9%
C++ 1.1%
Python 0.9%
Shell 0.7%
CMake 0.3%