eggdrop icon indicating copy to clipboard operation
eggdrop copied to clipboard

Eggdrop doesn't finsish DNS resolving an incoming telnet connection

Open DasBrain opened this issue 4 years ago • 6 comments

As user, you won't see any password prompt, but the telnet connection is established.
User input is ignored, no banner is shown.

When the connection is closed by the client (Ctrl++, Q), then a "Lost connection while resolving hostname" line will be logged.

Log from my bot with .console +d

<BrainBot> [06:15:15] net: connect! sock 4
<BrainBot> [06:15:26] net: eof!(read) socket 7
<BrainBot> [06:15:26] Lost connection while resolving hostname [1.2.3.4/52680]

(IP redacted.)

This happens spontaneously, no known way to reproduce.
It also sometimes fixes itself.

Eggdrop version: 1.9.0, dns module, no tdns.

DasBrain avatar Jun 13 '21 10:06 DasBrain

Reference #1175

vanosg avatar Jun 17 '21 23:06 vanosg

i have the exact same issue.. after a while i get this:

Lost connection while resolving hostname [1.2.3.4/52680]

When i connect multiple times with putty, the connection comes back and everything works again. When i run putty just once nothing happens (times out)

ERR1R avatar Jul 05 '21 09:07 ERR1R

try set set resolve-timeout 0

# Set here the amount of seconds before giving up on hostname/address lookup
# (you might want to increase this if you are on a slow network). The default is
# RES_TIMEOUT, which is generally 5, the allowed maximum is RES_MAXRETRANS (see
# <resolv.h>).
#set resolve-timeout 5
set resolve-timeout 0

Lord255 avatar Nov 01 '21 15:11 Lord255

Short comment: the proposed solution doesn't work for me. My eggdrops (1.9.1) doesn't respond to a telnet when they run for a certain time (unable to say how much, less than 1 hour).

Only one doesn't reproduce the bug, but it's on a raspberry (raspbien / home eggdrop). All others (debian / 2 different shells) have the bug, no matter if they are on a botnet or not.

crazycatdevs avatar Feb 13 '22 15:02 crazycatdevs

Has anyone seen this behavior in an eggdrop running tdns, or without the DNS module? If, no, I'm going to close this issue, we believe is fixed with the tdns capability.

vanosg avatar Jun 04 '22 03:06 vanosg

I forget to coment the loadmodule dns on my eggdrops 1.9.2. I just did it, will answer you tomorrow (usually, 24h is largely enough to get the bug)

Edit: the bug alway exists with eggdrop 1.9.2 and Threaded DNS core enabled

crazycatdevs avatar Jun 04 '22 14:06 crazycatdevs