DL6ER
|
7b0ab09b74
|
Make FTL upstream destination port-aware
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-11-13 00:16:55 +01:00 |
|
DL6ER
|
0abcaa7d09
|
Include upstream details in all-queries API response
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-11-12 22:50:27 +01:00 |
|
DL6ER
|
4883037816
|
Merge pull request #881 from pi-hole/tweak/event_queue
Add event queue for signal handling
|
2020-09-21 22:57:08 +02:00 |
|
DL6ER
|
3bb0fe98be
|
Fix subdirectory include paths. This is only to be explicit, the relative search finds them otherwise as well
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-09-03 20:46:01 +02:00 |
|
DL6ER
|
c889d47f17
|
Improve API filtering for domains
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-30 21:38:00 +02:00 |
|
DL6ER
|
91b9c96fc2
|
Extend domain filtering to also check the CNAME domain for domain-filtering (if this is indicated by the query status)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-30 21:33:31 +02:00 |
|
DL6ER
|
aa0a33adae
|
Merge pull request #856 from pi-hole/new/query_log_blocked_client_filtering
Add ability to show only blocked queries for a specific client
|
2020-08-15 13:05:19 +02:00 |
|
DL6ER
|
d55d5b14bb
|
Explicitly case time_t to (long long) before printing to address the musl-decision to make time_t 64 bit on 32 bit machines
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-12 22:03:24 +02:00 |
|
DL6ER
|
a4041a97b3
|
Fix API computation error introduced in e0609f14eee7903bca93020371576dad0ca93338
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-10 23:54:05 +02:00 |
|
DL6ER
|
68435f83d4
|
Make querytype string available everywhere in FTL.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-10 23:47:13 +02:00 |
|
DL6ER
|
3a4d8e2e0d
|
Add ;querytype=AAAA option
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-10 23:43:02 +02:00 |
|
DL6ER
|
5062c5032e
|
All queries: Hide UNKNOWN queries when not requesting both query status types
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-08-02 20:06:54 +02:00 |
|
DL6ER
|
ee578627a9
|
Remove privacy level 4. Systems currently running level 4 will automatically pick up the highest available level (which is now 3). Also tidy up enums into a dedicated file.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-07-08 23:48:05 +02:00 |
|
DL6ER
|
bad4914a87
|
Don't use fshort-enums as it may make objects files incompatible.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-28 20:19:11 +02:00 |
|
DL6ER
|
6941f0cfb7
|
Add support for additional query types: "A", "AAAA", "ANY", "SRV", "SOA", "PTR", "TXT", "NAPTR", "MX", "DS", "RRSIG", "DNSKEY" and "OTHER" (summing up all other possible DNS types)
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-06-28 19:58:15 +02:00 |
|
DL6ER
|
fb5cfe06fd
|
Do not decide whether we are blocking or not based on the gravity count (pre-v5.0 measure) but use the dedicated blockingstatus variable.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-04-23 10:08:42 +02:00 |
|
DL6ER
|
c83b5dcad5
|
Add new telnet API hook >getallqueries-client-blocked allowing to show only blocked queries for a specific client.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-04-16 20:39:55 +00:00 |
|
DL6ER
|
3e2ef282f8
|
Merge pull request #713 from pi-hole/new/NAPTR
Add support for Name Authority Pointer (NAPTR) resource record
|
2020-03-17 23:07:37 +00:00 |
|
DL6ER
|
7ca81e3d59
|
Merge pull request #685 from pi-hole/new/CNAME_inspection_details
Improvements to deep CNAME inspection data processing
|
2020-02-12 19:36:36 +01:00 |
|
DL6ER
|
acdd2253e6
|
Finish renaming "forward destionations" to "upstreams".
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-02-11 10:09:02 +01:00 |
|
DL6ER
|
c32d790eba
|
Rename "forwarded" counter to "upstreams" to avoid confusion in the future. We used sed to ensure to have caught every reference.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-02-11 09:35:07 +01:00 |
|
DL6ER
|
d648572fd9
|
Regex for which no ID is available should be sent as -1.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-02-04 18:31:17 +01:00 |
|
DL6ER
|
5c08c56d35
|
Store ID of matching blacklist regex if this is the blocking reason.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-02-04 08:34:01 +01:00 |
|
DL6ER
|
122a701f16
|
Add new CNAME-specific blocking modes [QUERY_GRAVITY_CNAME, QUERY_REGEX_CNAME, QUERY_BLACKLIST_CNAME] and store domain that was the reason for blocking during a CNAME inspection
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2020-01-29 21:58:58 +00:00 |
|
DL6ER
|
c9c7c27888
|
Add shared DNS cache for FTL. This cache is shared across forks and can be used by TCP and UDP clients avoiding any doubled amount of work.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-12-30 14:08:22 +00:00 |
|
DL6ER
|
faac7005d1
|
Improve performance significantly. We store if (and if: why) a certain domain was blocked for any requesting client and can immediately reply similarly if the same client requests the same domain again. This reduces the O(N^3) problem (number of queries * number of domains * number of clients) to a O(N^2) problem (domains * clients). Note that this state of the code still lacks a possibility to reset when entries in the database have changed. For this, we still have to send either SIGHUP (drawback: clears the cache) or define a new signal for it.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-11-22 09:42:06 +01:00 |
|
DL6ER
|
96746a8199
|
Attach guards to remaining getter functions.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-09-05 21:04:51 +02:00 |
|
DL6ER
|
a78c0cc5ae
|
Merge branch 'development' into new/ls_dev_shm_on_crash
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-14 22:43:37 +02:00 |
|
DL6ER
|
8172493679
|
Use unsigned long lng on all platforms for file size. Print human-readable filesize in ls_dir().
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-14 22:36:26 +02:00 |
|
DL6ER
|
a5ea558d5a
|
Merge branch 'new/modularize_headers' into new/use_audit_database_table
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-07 10:09:54 +02:00 |
|
DL6ER
|
5c75fc3e67
|
Move even more definitions from FTL.h into the respective headers.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-07 10:09:18 +02:00 |
|
DL6ER
|
392589d5f8
|
Log when a domain was skipped in audit mode when the corresponding debug flag is set.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 16:49:54 +02:00 |
|
DL6ER
|
ce8876a07d
|
Fix failed auto-merge during cherry-pick.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 16:41:09 +02:00 |
|
DL6ER
|
bddbc3ebd4
|
Union FTLFileNamesStruct and logFileNamesStruct and define them in config{.c/.h}
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 16:36:54 +02:00 |
|
DL6ER
|
e13e39ad42
|
Union FTLFileNamesStruct and logFileNamesStruct and define them in config{.c/.h}
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 16:36:06 +02:00 |
|
DL6ER
|
09b8f91617
|
Check audit database table instead of file in the API.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 16:30:07 +02:00 |
|
DL6ER
|
8280f454a8
|
Change type of get_FTL_db_filesize() from double to long int.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-05 12:05:32 +02:00 |
|
DL6ER
|
6b2f22f9f7
|
Move API modules (api, request, socket, msgpack) into their own subdirectory src/api.
Signed-off-by: DL6ER <dl6er@dl6er.de>
|
2019-07-04 16:38:45 +02:00 |
|