Red Hat Bugzilla – Bug 516299
ssh slow resolving localhost
Last modified: 2009-08-20 03:32:19 EDT
Description of problem:
ssh requires almost 5 minutes to resolve 'localhost'. Delay does not occur if hostname is given instead, or when pinging localhost.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. ssh localhost
2. ping localhost
ping returns results immediately, ssh takes 5 minutes
ssh localhost is immediate
Contents of /etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
A workaround is to comment out the IPV6 entry in /etc/hosts
This problem has been traced to a misconfigured ipv6tables ruleset that was blocking packets to/from localhost. It is not a bug.