public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4671] New: gethostbyname() cant resolve names starting/ending with "-"
@ 2007-06-20 17:19 nikolaeff at gmail dot com
  2007-07-02 16:40 ` [Bug libc/4671] " jakub at redhat dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: nikolaeff at gmail dot com @ 2007-06-20 17:19 UTC (permalink / raw)
  To: glibc-bugs

gethostbyname() fails to resolve domain names with minus sign at beginning or end of domain name,
in example -kol.deviantart.com, while it can be resolved using host and nslookup.

example sessiong:

insa@devel:~$ ping -- -kol.deviantart.com
ping: unknown host -kol.deviantart.com

insa@devel:~$ host -- -kol.deviantart.com
-kol.deviantart.com has address 69.28.181.43

Breif look at linux iputils/ping.c shows that it's using gethostbyname() function.
So i wrote C test example that can be found at http://insa.pp.ru/files/bugs/gethost.c

Tested on Debian 3.1, Debian 4, FreeBSD 5.4. All i386.
Mac OS X not affected.

-- 
           Summary: gethostbyname() cant resolve names starting/ending with
                    "-"
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: nikolaeff at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4671

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-4671-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2011-01-07 18:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-20 17:19 [Bug libc/4671] New: gethostbyname() cant resolve names starting/ending with "-" nikolaeff at gmail dot com
2007-07-02 16:40 ` [Bug libc/4671] " jakub at redhat dot com
2007-07-02 20:23 ` nikolaeff at gmail dot com
2007-09-23 22:33 ` drepper at redhat dot com
2008-10-12 20:52 ` gredhat dot nospam dot bug at freestart dot hu
2009-03-07 13:39 ` alexeyten+deb at gmail dot com
2010-01-20  9:02 ` bjorn at haxx dot se
2010-08-20  8:12 ` allan at archlinux dot org
2010-09-17  0:17 ` tyler dot szabo at gmail dot com
     [not found] <bug-4671-131@http.sourceware.org/bugzilla/>
2011-01-07 18:49 ` bugs at randomguy3 dot me.uk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).