Summary: | net-dns/djbdns-1.05-r37 tinydns does not answer requests after a few requests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vadim Efimov <evadim> |
Component: | Current packages | Assignee: | Michael Orlitzky <mjo> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | eike |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/NixOS/nixpkgs/issues/119066 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | softlimit.patch |
Description
Vadim Efimov
2022-11-26 15:31:23 UTC
Created attachment 837169 [details, diff]
softlimit.patch
Patch to fix issue. Diff to new ebuild:
--- ./djbdns-1.05-r37.ebuild 2022-11-17 16:40:31.000000000 +0300
+++ djbdns-1.05-r38.ebuild 2022-11-26 17:19:18.000000000 +0300
@@ -44,6 +44,7 @@
"${FILESDIR}/CVE2009-0858_0001-check-response-domain-name-length.patch"
"${FILESDIR}/CVE2012-1191_0001-ghost-domain-attack.patch"
"${FILESDIR}/AR-and-RANLIB-support.patch"
+ "${FILESDIR}/softlimit.patch"
)
cc'ing dakon in case he knows about this I wasn't aware of that. According to the file timestamp I changed my limit to 520000 back in April, but I don't remember. It's likely that I have hit the same issue. Out of curiosity I would love to learn what glibc is exactly doing different, but otherwise I think raising the softlimit is fine. Apparently I fixed this on our DNS servers at work two years ago, but I guess I assumed the problem was specific to our instance (too many zones or something). I'll patch it. Thanks. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a4405074f435983fb6515a2cfed1dca2a67a783 commit 0a4405074f435983fb6515a2cfed1dca2a67a783 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2022-12-02 13:12:12 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2022-12-02 22:43:58 +0000 net-dns/djbdns: new revision increasing tinydns's softlimit. The tinydns launch script imposes a "softlimit" on the amount of memory it can use, and sometime recently (in djbdns terms, anyway), the old default of 300000 became insufficient. We raise it 4500000. This will only help new installations; users with existing ones will need to modify their local launch scripts because the script itself is not controlled by the package manager. Thanks to Vadim Efimov for pointing out that this problem is widespread and in need of fixing. Closes: https://bugs.gentoo.org/883159 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> .../{djbdns-1.05-r37.ebuild => djbdns-1.05-r38.ebuild} | 1 + net-dns/djbdns/files/tinydns-softlimit.patch | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) |