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): How reproducible: Always Steps to Reproduce: 1. ssh localhost 2. ping localhost 3. Actual results: ping returns results immediately, ssh takes 5 minutes Expected results: ssh localhost is immediate Additional info: 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.