DL6ER
68d9036c9e
Ensure that lock is released when resolving host names. This is necessary as we'd otherwise block the main thread which is actually supposed to do the resolving.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-12-25 13:57:45 +01:00
Mcat12
befc0f81fe
Fix reference to old lock functions
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-11-21 15:04:52 -05:00
DL6ER
85290bb73e
Merge branch 'development' into new/shmem
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-11-21 20:44:37 +01:00
DL6ER
9f860376b1
Change logic of onlynew variable: If onlynew is set and an item is NOT new, we skip this one. In all other cases, we try to resolve.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-10-27 21:08:48 +02:00
DL6ER
e6157da42e
Also re-resolve upstream host names every hour
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-10-27 21:06:06 +02:00
DL6ER
fd53505d97
Rename routines/variables to reflect "DNS client"
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-10-27 20:54:45 +02:00
DL6ER
1a3a595e26
Use "DNS client" as custom thread name for the new name resolving thread
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-10-27 19:29:25 +02:00
DL6ER
513566328d
Call to ">reresolve" also re-resolves host names of all known forward destinations
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-10-26 20:17:37 +02:00
DL6ER
f10b49cd69
Remove obsolete debug output
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-10-25 19:56:39 +02:00
DL6ER
f2f3566980
Move resolution of client and upstream host names to a dedicated thread. Fixes #404
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-10-25 19:53:29 +02:00
Mcat12
3d439adcaf
Merge remote-tracking branch 'origin/development' into new/shmem
...
# Conflicts:
# dnsmasq_interface.c
# resolve.c
2018-09-17 11:54:49 -04:00
Mcat12
ae1bb5b71a
Move counters to shared memory
...
This requires that it be accessed through a pointer, so most of the
changes are just changing `counters.` to `counters->`
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-09-03 14:25:16 -04:00
Mcat12
c9e468b850
Don't forget to reset "new" flag on client struct when name is resolved
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com >
2018-09-03 01:09:48 -04:00
DL6ER
b7da12b600
Use strbuffer also for client IPs and host names
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-08-01 18:37:48 +02:00
DL6ER
3e8849049e
Store forward destination IP address and host name in contiguous string buffer
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-08-01 18:04:43 +02:00
DL6ER
81f72c3d11
Provacy mode: Actually return host name "hidden" instead of trying to resolve 0.0.0.0
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-04-12 11:01:16 +02:00
DL6ER
e2d0529993
Implement name resolving power back for FTLDNS. This re-implements lots of already extensively tested code that was present in pre-FTLDNS for over a year. This implementation is only slightly different by ensuring that name resolution is done in a specific non-blocking way.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-04-11 18:20:06 +02:00