Bug 2205

Summary: -S does hostname lookup although it is unused
Product: Portable OpenSSH Reporter: Ulrich Sibiller <u.sibiller>
Component: sshAssignee: Damien Miller <djm>
Status: CLOSED FIXED    
Severity: normal CC: djm, dtucker
Priority: P5    
Version: 6.5p1   
Hardware: amd64   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2188    
Attachments:
Description Flags
Avoid early hostname lookup when hostname canonicalisation is not enabled dtucker: ok+

Description Ulrich Sibiller 2014-02-25 05:52:32 AEDT
We have a shell script that is using multiplexing a lot where the hostname is normally ignored. With 6.5p1 it stopped working. 

The call

ssh -S <controlpath> dummyhost

used to work but results in "ssh: Could not resolve hostname dummyhost: Name or service not known" now.

I changed the code to

ssh -S <controlpath> 0.0.0.0 

and now it is working again.

Has this been changed on purpose?
Comment 1 Damien Miller 2014-02-26 10:48:14 AEDT
Created attachment 2413 [details]
Avoid early hostname lookup when hostname canonicalisation is not enabled

This is a side-effect of the hostname canonicalisation changes. 

Could you please try this patch? You'll need to use cvs/git -current or one of the snapshots at http://www.mindrot.org/openssh_snap
Comment 2 Damien Miller 2014-10-08 08:00:43 AEDT
Close all bugs left open from 6.6 and 6.7 releases.