-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dnsdist: 1.5.1 response to "dnsdist -e 'grepq("")' | wc -l" always "4" after some time #11488
Comments
Next fail.
|
Would you be able to test if raising the maximum response size again ( |
I did set setConsoleOutputMaxMsgSize(30000000) Now the error occurs later. linux-kpqb:~ # dnsdist -e 'grepq("")' | wc -l
linux-kpqb:/DNS/named # dnsdist -e 'grepq("")' | wc -l
|
Thanks! So I think you are reaching the maximum size of a message indeed. If you have enough memory you can keep raising that limit (there is a hard limit at 2^32-1, so 4294967295) until it is high enough for the number of entries you want to inspect. A better option would be to implement some kind of paging in |
In this case I wanted to test if I get what I configured. I still can not see how are these related to the result. 120098 Queries * 2 = 240195 (and still smaller than both configured values) |
This is how many bytes the output of a single command executed over the console can be.
This is the maximum number of entries (queries + responses) that will be kept in the ring buffers.
Did dnsdist process 400k queries or more? If so I'd expect 800k lines indeed, provided that |
Short description
somewhere after 120946 requests the answer to
"dnsdist -e 'grepq("")' | wc -l"
is always "4"
Environment
Steps to reproduce
dnsdist -> unbound -> bind
I configured my testdomains an a bind.
wunder.de
zeit.de
I changed these configuration defaults in dnsdist.conf
setRingBuffersSize(800000)
setConsoleOutputMaxMsgSize(20000000)
I did a lot of dns requests.
I asked regulary "dnsdist -e 'grepq("")' | wc -l"
Everything was normal up to 67998 requests but after 101943 requests the answer was always "4"
"dnsdist -e 'grepq("")' shows
/DNS/log/dnsdist/dnsdist_err.log
/DNS/log/dnsdist/dnsdist_warn.log
/DNS/log/dnsdist/dnsdist_info.log
Connection closed by server.
dnsdist console shows: Got an exception in client connection from 127.0.0.1:38070: failed in writen2: Broken pipe
Expected behaviour
Since the result of topQueries(0)
is 147999
I would expect 2*147999 as result of "dnsdist -e 'grepq("")' | wc -l"
Actual behaviour
the result of "dnsdist -e 'grepq("")' | wc -l" is always "4"
Other information
After grepping for every result fails
"dnsdist -e 'grepq("wunder.de")' | wc -l"
"dnsdist -e 'grepq("wunder.de")'"
still worked.
Now after "topQueries (0)" = 164393 that is also failing.
This still works:
"dnsdist -e 'grepq("zeit.de")' | wc -l"
33362
topQueries(3)
1 wunder.de. 108162 65.7%
2 version.bind. 39706 24.1%
3 zeit.de. 16679 10.1%
4. Rest 0 0.0%
linux-kpqb:~ # dnsdist -e 'grepq("")' | wc -l
4
linux-kpqb:~ # dnsdist -e 'grepq("wunder.de.")' | wc -l
4
linux-kpqb:~ # dnsdist -e 'grepq("zeit.de.")' | wc -l
33362
linux-kpqb:~ # dnsdist -e 'grepq("wunder.de.")'
/DNS/log/dnsdist/dnsdist_err.log
/DNS/log/dnsdist/dnsdist_warn.log
/DNS/log/dnsdist/dnsdist_info.log
Connection closed by the server.
linux-kpqb:~ # dnsdist -e 'grepq("zeit.de.")' | less
/DNS/log/dnsdist/dnsdist_err.log
/DNS/log/dnsdist/dnsdist_warn.log
/DNS/log/dnsdist/dnsdist_info.log
Time Client Server ID Name Type Lat. TC RD AA Rcode
-18682.3 127.0.0.1:33007 44639 zeit.de. A RD Question
-18682.3 127.0.0.1:33007 10.0.2.15:42 44639 zeit.de. A 0.3 RD AA No Error. 1 answers
[...]
The text was updated successfully, but these errors were encountered: