Bug 1449814
| Summary: | nslookup and dig return SERVFAIL error for FQDN after multiple queries | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | SHAURYA <sshaurya> | ||||
| Component: | bind | Assignee: | Petr Menšík <pemensik> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.8 | CC: | pemensik, sshaurya, thozza | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1470637 (view as bug list) | Environment: | |||||
| Last Closed: | 2017-10-27 14:48:25 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1461138, 1470637 | ||||||
| Attachments: |
|
||||||
|
Description
SHAURYA
2017-05-10 19:07:21 UTC
Hello SHAURYA. If target server is unreachable, named will retry more servers if it can. If there is no more servers, it will retry the same again. You can configure a bit longer timeout by option resolver-query-timeout. But it can be only between 10 and 30 seconds. In nslookup it can be changed by set timeout=30. It is a feature. SERVFAIL is returned when resource is temporarily unavailable. It means resolver was unable to fetch positive nor negative response. In given tcpdump, client asked 3 times for an address. Server was trying to fetch answer but failed, after timeout returning back servfail to fdsuv06672.fda.gov. If response to queries made by frs26.fda.gov server returned later, server will cache it and respond with positive answer on following queries. Please do not assign high priority in bugs, where you are not sure if they are bugs at all. If there is anything wrong with the server, log output of server is required. I would require logs from the server to tell you more. Even more details would be logged by OPTIONS="-d 5" in /etc/sysconfig/named for example. Can I close this bug? Yes, I think there is a bug in dig. And it it not yet fixed even in the latest bind beta. It does happen only in dig +tcp mode. Easiest way to reproduce it is to use iptables to drop incoming acknowledges. # iptables -I INPUT -p udp --sport domain -j DROP # iptables -I INPUT -p tcp --sport domain --tcp-flags ACK,SYN ACK -j DROP There is hidden -d option of dig that will help very much. It will print debug messages to stderr about what it does use as origin. dig -d +retry=4 +tcp +domain=example foo where /etc/resolv.conf would contain nameserver 127.0.0.1 search example The first connection will query foo expanded by domain example. After it timeouts, it will try a new connection. New connection is created without the search list however, so only bare name used on following retries. UDP searches are not modified, because they do not use requeue_lookup call (logs "making new TCP request"). Finally I found a place to fix it. Reported as [ISC-Bugs #45547] Created attachment 1297140 [details]
Keep origin on new TCP connection patch
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available. The official life cycle policy can be reviewed here: http://redhat.com/rhel/lifecycle This issue does not appear to meet the inclusion criteria for the Production Phase 3 and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com |