Re: Domain name suffix woes

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



> I'm assuming that when the hostname is pure number, it ignores domain
> suffix. As just a number cannot be an actual IP, could this behavior be
> fixed in OpenSSH?
A number _is_ (or can be) a valid IPv4.

    $ perl -e 'print gethostbyname(shift)."\n"' 65.65.65.65
    AAAA
    $ perl -e 'print gethostbyname(shift)."\n"' 1094795585
    AAAA

You can leave out parts of the IP address:

    $ perl -e 'print gethostbyname(shift)."\n"' 65.65 | hd
    00000000  41 00 00 41 0a                                    |A..A.|

See also 
http://serverfault.com/questions/638260/is-it-valid-for-a-hostname-to-start-with-a-digit 
for some more discussion and links.

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux