]> git.kaiwu.me - nginx.git/commit
Resolver: limited name length in DNS responses master
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 6 Oct 2026 11:26:23 +0000 (11:26 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 24 Nov 2026 16:13:33 +0000 (20:13 +0400)
commit2402d2f96d48d38e1f61a13aa8561830d105f6d2
tree1e9aefcb73a2d1039a919be292171b801bef31e5
parentcae53f32b0d6ce195ebf25b30772fc2270acd540
Resolver: limited name length in DNS responses

Names in DNS responses were only limited by the number of labels and
compression pointers, so a name could be expanded to about 8 kilobytes.

Now names longer than 255 octets are rejected, as specified in RFC 1035,
section 3.1.
src/core/ngx_resolver.c