[Bug 2626] ssh 172.10 resolves to ssh 172.0.0.10

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Oct 18 15:12:41 AEDT 2016


https://bugzilla.mindrot.org/show_bug.cgi?id=2626

Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au

--- Comment #1 from Darren Tucker <dtucker at zip.com.au> ---
This is a feature of gethostbyname and earlier gethostbyaddr
interfaces: class.hostnum and the 32bit integer equivalent are
deprecated but still valid representations of an IP address.

Compare:
$ telnet 172.10
Trying 172.0.0.10...

$ telnet 1.512
Trying 1.0.2.0...

$ perl -le 'print 2**31+1'
2147483649
$ telnet 2147483649
Trying 128.0.0.1...

If you really want something to complain about, try this:
$ telnet  172.010
Trying 172.0.0.8...

That all said, it's not something that OpenSSH has anything to do with.

Also: hardware=68k?  for real?

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list