Project

General

Profile

Actions

Feature #15226

closed

Resolv::DNS unable to handle responses larger than default size

Added by rtib (Tibor Repasi) about 6 years ago. Updated over 5 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:89421]

Description

The actual implementation of Resolve::DNS defines UDPSize = 512 as default. There is no way to initialize a Resolv::DNS instance having non-default UDPSize, as well all socket reads will be limited to this size. Also, queries responding with larger and/or fragmented packets will result in an empty set after timeout and no error is raised.

Currently, Resolv::DNS is therefore limited usable in use-cases when a DNS response is larger than 512 bytes.

Desirable would be to have UDPSize as configurable attribute, instead of a hard coded constant.

Actions

Also available in: Atom PDF

Like0
Like0