Dominik
d3437814cc
Merge pull request #1986 from pi-hole/fix/retry_truncated
...
Internal name resolution over UDP with fallback to TCP
2024-06-02 21:14:53 +02:00
DL6ER
d3439593a1
Default to resolve internal PTRs using UDP, fall back to TCP for individual queries on UDP truncation (commonly seen in conjunction with DNSSEC)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-06-02 19:55:28 +02:00
DL6ER
14ea246f9a
Always include timezone in human-readable timestamps
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-06-02 10:19:26 +02:00
DL6ER
aac9968eb0
Merge branch 'development-v6' into new/timezone
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-06-01 06:38:38 +02:00
DL6ER
306710e74a
Add timezone information where this is appropriate. We do not include this in the log files to not needlessly change for format. Open for discussion
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-30 19:53:53 +02:00
DL6ER
1a5e7f6bf8
Add new dhcp.ignoreUnknownClients option
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-30 12:26:40 +02:00
Dominik
7ff016f21c
Merge pull request #1737 from pi-hole/new/migrate_dnsmasq_conf
...
Read config files from new location
2024-05-30 07:03:23 +02:00
Dominik
47c7de6c93
Merge pull request #1976 from pi-hole/fix/resolver
...
Improve internal DNS resolver
2024-05-30 06:29:46 +02:00
DL6ER
19715ead9a
Add help description of new optional ptr IP [tcp] flag
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-29 20:06:50 +02:00
DL6ER
86d683340a
Merge branch 'development-v6' into fix/resolver
2024-05-29 19:39:33 +02:00
DL6ER
c6e776d936
Merge branch 'development-v6' into tweak/env_reset
2024-05-29 19:20:24 +02:00
Dominik
23d94763a5
Merge pull request #1962 from pi-hole/new/clang
...
Add Clang compiler support and update project to C17 standard
2024-05-29 19:19:26 +02:00
DL6ER
980cc84fcd
Reset special debug.all in a similar way
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-29 19:09:44 +02:00
DL6ER
7bfe4dc26e
Reset config options previously forced by env vars but not any longer
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-29 18:29:24 +02:00
DL6ER
a5f5092f5a
List forced environment variables at end of the config file
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-28 21:47:11 +02:00
DL6ER
2cb6b36dca
Print config file statistics at the end of the config file
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-28 21:33:45 +02:00
DL6ER
3de9e12f70
Change magic comment put next to config options which are forced through the environment
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-28 21:32:04 +02:00
DL6ER
090c1adabf
Implement later retrying if name resolution attempt failed temporarily (e.g., broken pipe). Also use TCP protocol for upstream server name resolution
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-27 08:25:30 +02:00
DL6ER
5db4ade057
Use TCP queries for internal name resolution to avoid truncated replies
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-26 21:22:29 +02:00
DL6ER
2843fb0203
Fix forgotten update of lastQuery of upstream servers
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-26 11:42:11 +02:00
DL6ER
36cb3a4f79
Add more debugging for the internal name resolution process: (1) about the PTR we sent (and where), (2) about the status of the answer, (3) whether the answer was truncated (and, hence, ignored), (4) about answers skipped because they are not of type PTR, and (5) when we are trying to get client host names from the database (without any actual PTR lookups)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-26 11:36:46 +02:00
DL6ER
40eee1ac9c
Addres spellchecker complaints
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-25 09:57:46 +02:00
DL6ER
dc204a41b0
Use v2.6 CI containers and nightly for the devcontainer
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-25 09:54:37 +02:00
Dominik
825a14a69b
Merge pull request #1974 from pi-hole/update/sqlite_3.46.0
...
Update embedded SQLite3 to 3.46.0
2024-05-23 21:51:42 +02:00
DL6ER
3afd9f0d41
Update embedded SQLite3 to 3.46.0
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-23 20:53:09 +02:00
DL6ER
be9fe875f6
Always try to chown auxiliary database files, not only when chown of the database files itself failed
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-21 19:59:51 +02:00
DL6ER
1a72da3616
Do not build static exectuable in clang test to avoid LTO linking issue
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-20 22:10:46 +02:00
DL6ER
25ab7b726c
Print GLIBC version in pihole-FTL -vv and not during compile time as "#pragma message" is not supported by older clang versions
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-19 09:05:44 +02:00
DL6ER
67fdf2915b
Fix conditional for readline inclusion in LUA code
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-19 08:56:14 +02:00
DL6ER
d579417901
Ensure target lua_scripts is built before target ftl_lua depending on it
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-19 07:27:06 +02:00
DL6ER
20173437ad
Merge branch 'development-v6' into new/clang
2024-05-18 20:38:56 +02:00
Dominik
524308314f
Merge pull request #1970 from pi-hole/fix/wal-ownership
...
Ensure we also change ownership of the WAL database files
2024-05-18 19:10:53 +02:00
DL6ER
e3346ff641
Ensure we also change ownership of the WAL database files
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 17:29:24 +02:00
DL6ER
4b2cb98825
Enforce minimum version of mbedTLS (3.5.0)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 17:13:55 +02:00
DL6ER
e286d4b147
Properly guard X.509 functions to allow compiling FTL without mbedTLS library being available, also improve how definitions are done in src/CMakeLists.txt and reduce instruction-duplication on the way
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 17:11:42 +02:00
DL6ER
ab373bc580
Merge branch 'special/CI_development' into new/clang
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 12:04:32 +02:00
DL6ER
313cb2353f
Update C standard to C17
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 11:39:23 +02:00
DL6ER
9fbd40e05f
Avoid ambigious else
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 11:10:47 +02:00
DL6ER
f894910326
Remove explicit static instructions - binaries compiled on alpine will balways e linked statically
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 10:59:40 +02:00
DL6ER
9446b2526a
Merge branch 'development-v6' into special/CI_development
2024-05-18 10:46:43 +02:00
Erik Karlsson
98407e3a58
Update DNS records after pruning DHCP leases
...
Not doing so can result in a use after free since the name for DHCP
derived DNS records is represented as a pointer into the DHCP lease
table. Update will only happen when necessary since lease_update_dns
tests internally on dns_dirty and the force argument is zero.
Signed-off-by: Erik Karlsson <erik.karlsson@iopsys.eu >
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-18 09:13:54 +02:00
Dominik
4628219bb9
Merge pull request #1956 from oliv3r/readline_detection
...
Readline detection
2024-05-17 19:37:40 +02:00
Jack'lul
ecd2e8198b
Fix error message mentioning wrong file
...
Signed-off-by: Jack'lul <jacklulcat@gmail.com >
2024-05-17 18:03:57 +02:00
DL6ER
32de390b00
Add Clang compiler support, tested with Clang 14.0.0 (Ubuntu 22.04.3 LTS), Clang 16.0.2 (Alpine 3.18), and Clang 17.0.6 (Alping Edge)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-15 20:41:52 +02:00
DL6ER
30cade643f
Use new constant also as back-off factor for exporting into the database
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-14 20:36:32 +02:00
DL6ER
688a551a24
Improve query storing algorithm to better cope with bursts of queries of arbitrary size and frequency
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-14 20:17:05 +02:00
DL6ER
d4a89f3b3e
Update bundled cJSON from 1.7.17 -> 1.7.18 released earlier today
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-13 16:55:12 +01:00
DL6ER
55258150c1
Allocate memory for basename()
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-12 21:40:50 +02:00
DL6ER
91b1ced3ab
Fix use-after-free warning
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-12 21:38:46 +02:00
DL6ER
fccbe2bee4
Add missing #include
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2024-05-12 21:38:43 +02:00