000-221 · Question #161
When attempting to connect to a remote system, a long delay is experienced before the login prompt is displayed. Which of the following is the most likely cause of this issue?
The correct answer is B. The /etc/resolv.conf file on the remote system has an invalid entry. A long delay before a remote login prompt is most commonly caused by DNS lookup timeouts, which occur when /etc/resolv.conf on the remote system points to an unreachable or invalid DNS server.
Question
When attempting to connect to a remote system, a long delay is experienced before the login prompt is displayed. Which of the following is the most likely cause of this issue?
Options
- AThe /etc/resolv.conf file on the remote system is missing.
- BThe /etc/resolv.conf file on the remote system has an invalid entry.
- CThe /etc/hosts file on the remote system does not have an entry for itself.
- DThe /etc/hosts file on the remote system has an invalid hostname listed for itself.
How the community answered
(31 responses)- A10% (3)
- B71% (22)
- C3% (1)
- D16% (5)
Why each option
A long delay before a remote login prompt is most commonly caused by DNS lookup timeouts, which occur when /etc/resolv.conf on the remote system points to an unreachable or invalid DNS server.
A missing /etc/resolv.conf causes the system to skip DNS entirely and fall back immediately to /etc/hosts, resulting in a fast failure rather than a prolonged timeout delay.
When an inbound remote connection is received, the remote system performs a reverse DNS lookup on the client IP address for authentication and logging purposes. An invalid entry in /etc/resolv.conf - such as an unreachable DNS server IP - causes the resolver to time out after multiple retry attempts before the login prompt is presented, producing the observed delay.
The remote system lacking an entry for itself in /etc/hosts affects local hostname resolution but does not introduce a delay during inbound connection authentication.
An invalid hostname for the server itself in /etc/hosts may cause local resolution problems but does not produce the characteristic multi-second timeout caused by failed reverse DNS lookups.
Concept tested: DNS reverse lookup timeout causing remote login delay
Source: https://www.ibm.com/docs/en/aix/7.3?topic=r-resolvconf-file
Topics
Community Discussion
No community discussion yet for this question.