Actions
Bug #3967
closed$dns() returns wrong values during simultaneous dns requests
Start date:
06/27/2018
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
No
Description
Hello,
I am trying to create a code (DNSBL) that will perform a massive dns progresses lookup, but i catch a bug that ON DNS event it doesn't return correctly the $dns() results while looping into the queue, that making first slowly and not working propertly, i will provide a test code to run it and reproduce it.
Example Code: (use /test_dns multi times because it using random ips for scan)
ON *:DNS: { echo 2 -sg DNS: $dns(0) -- $dns(0).ip -- $dns(0).addr } alias test_dns { var %i = 1 while (%i <= 30) { var %ip = $rand(100,200) $+ . $+ $rand(100,200) $+ . $+ $rand(100,200) $+ . $+ $rand(100,250) dns -4 %ip inc %i } }
- Thanks!
Actions