Bug 165802
| Summary: | resolver fails on truncated dns replies | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Avi Kivity <avi> |
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED DUPLICATE | QA Contact: | Brian Brock <bbrock> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-08-21 16:42:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Avi Kivity
2005-08-12 13:18:52 UTC
Can't reproduce this. Could this be a problem in your local nameserver? I saw it on two machines (both FC4 with local nameservers, one i386 and one
x86-64)
it's not 100% reproducible with wikipedia - the authority section is sometimes
missing, which means the reply does not get truncated. it's easy to reproduce
by adding an entry to a local domain with plenty of A records:
[avi@firebolt ~]$ sudo cat /var/named/localhost.zone
$TTL 86400
@ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
@ IN A 127.0.0.1
beep IN A 1.2.3.4
beep IN A 1.2.3.5
[...many more...]
beep IN A 1.2.3.6
beep IN A 1.2.73.13
beep IN A 1.2.73.14
[avi@firebolt ~]$ ping beep.localhost
ping: unknown host beep.localhost
[avi@firebolt ~]$ dig beep.localhost
;; Truncated, retrying in TCP mode.
; <<>> DiG 9.3.1 <<>> beep.localhost
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28631
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 80, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;beep.localhost. IN A
;; ANSWER SECTION:
beep.localhost. 86400 IN A 1.2.73.7
beep.localhost. 86400 IN A 1.2.73.8
beep.localhost. 86400 IN A 1.2.73.9
beep.localhost. 86400 IN A 1.2.73.10
[... many more ...]
again note the comment about truncation and tcp.
I've verified this with ethereal as well.
another way to reproduce: dig . ns; ping en.wikipedia.org this makes the nameserver (bind-9.3.1-8.FC4) return the extra authority section. |