Skip to content

Commit 407b659

Browse files
committed
1.1.1, fix no subs search
1 parent d99a6de commit 407b659

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [1.1.1] - 2023-06-07
4+
- Fixed: subdomains were not searched anymore for searches with less than 1000 domains, since 1.1.0.
5+
6+
## [1.1.0] - 2021-07-25
7+
- Fixed: FQDNs/domains from input file can now be internationalized names (punnycode: xn--...);
8+
- Changed: the script can now check more than 1000 domains at once (it will take a huge time though) - it only could search for 999 FQDNs/domains at once before (SQLite3 maximum tree depth limitation);
9+
- Changed: FQDNs/domains from input are now searched as exact names or subdomains of these exact names only by default. Any DNS query for a hostname ending with the input name matched before, leading in some irrelevant matches, i.e. "anytoto.com" and "any.toto.com" matched for "toto.com", while now "toto.com" and "any.toto.com" still match for "toto.com", but not "anytoto.com".
10+
311
## [1.0.0] - 2021-03-07
412
- No changes since 1.0.0-beta.1. Versioned as 1.0.0 after more than 15 days without any reported issue.
513
- Fixed: removed useless code from initial Pi-hole CLI PR.

pihole-checklogs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
# pihole-cheklogs.sh
4+
# VERSION: 1.1.1
45
# Requires a full working Pi-hole environment, Bash 4+, GNU grep and zcat.
56
#
67
# Check Pi-hole FTL-DB and DNS logs for a list of given domains/IPs, in order to
@@ -353,6 +354,7 @@ function check_domains() {
353354
index=0
354355
fi
355356
done
357+
like_values="${like_values}${like_buffer}"
356358
in_list="${in_list//\'\'/\', \'}"
357359
if [[ "${FQDN_MATCH_SUBDOMAINS}" == true ]]; then
358360
ftl_query="SELECT DISTINCT timestamp,domain,client FROM queries WHERE domain IN (${in_list})${like_values}"

0 commit comments

Comments
 (0)