"telnet 0 25" stopped working after upgrading system from RH7.2 glibc 2.2.4 to RHAS3 with glibc 2.3.2, and also after upgrading Ultra1 from Solaris 8 to RHAS3 with glibc 2.3.2. Any undotted decimal, hexadecimal or octal IP address also fails to resolve for apps using glibc 2.3.2's gethostbyname. Apps that use libresolv (ping, tracertoute) continue to operate as expected, and resolve hostname '0' to IP address 0.0.0.0, which causes socket calls to connect to the first local interface, usually lo0. They can also resolve hex or octal addresses. Apps linked only against glibc 2.3.2 return "0: Name or service not known" or "0xac1c3f0a: Name or service not known". I have not used any glibc versions between 2.2.4 and 2.3.2 so I cannot pinpoint when this change occurred. I did a search in the bug list and didn't find anything relevant, so here I am, posting a bug.
In the latest cvs, this report is already fixed. I confirmed an old glibc 2.3.2 behaved as you mentioned.
Thanks for looking into this and posting a reply. I now have glibc 2.3.3-20040420-r1 on my Sun Ultra2, and it exhibits the same behavior. What release of glibc do I need to obtain to get this fix you mentioned? Thanks.