Looking 4 Hint: Smartest way to query a pihole to determine it's version (V6 vs V5.. )

Thinking about the orphaned HA Integration:
V6 has a different API location, structure and authentication, vs. V5.

Details about my system:
I have both V5 and V6 running locally so I can experiment/test against them

What I have changed since installing Pi-hole:
not relevant, IMHO...

Is there a smart way for me to connect (e.g. telnet) to/into a pihole and query its version?

Are there already some apps/code out there that handles the check for version, and then the authentication?

Is there any kind of summary of the old vs. new API posted somewhere, or is it just in the code?

Related but slightly off-topic question: There be a sunset/phase-out/EOL for V5? Are there a lot of users out there who perhaps even still use V4? Maybe the V(<5) user number aren't even relevant...

Thanks in advance,

Dave

We do not track Pi-hole users, so we don't have any installation counts.

Version information should be available via DNS requests (unless you'd have disabled that), e.g.

dig +short version.FTL chaos txt

v5 output will look like "v5.25.2", while v6 development output is similar to "vDev-18f91b0". Once v6 is released, the latter will change to look more like the v5 version info.

Unlikely. As Bucking_Horn noted, we don't know how many Pi-holes are running worldwide, or which versions are installed.

But, I do look at a lot of debug logs that users have uploaded, and I very rarely see a V4 install. Less than 1% for sure, likely a lot less.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.