From nobody@FreeBSD.org  Fri Nov 14 03:27:10 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E93641065677
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Nov 2008 03:27:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D0FCC8FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Nov 2008 03:27:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mAE3RA8U047014
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Nov 2008 03:27:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mAE3R93P047013;
	Fri, 14 Nov 2008 03:27:09 GMT
	(envelope-from nobody)
Message-Id: <200811140327.mAE3R93P047013@www.freebsd.org>
Date: Fri, 14 Nov 2008 03:27:09 GMT
From: xjt <xjtdy888@163.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: can't ping have _ character domain 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         128858
>Category:       bin
>Synopsis:       [libc] can't resolve hostnames containing underscore
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 14 03:30:06 UTC 2008
>Closed-Date:    Fri Nov 14 19:16:49 UTC 2008
>Last-Modified:  Fri Nov 14 19:16:49 UTC 2008
>Originator:     xjt
>Release:        7.0-RELEASE FreeBSD
>Organization:
>Environment:
xx# uname -a
FreeBSD xx.xx 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
xx# ping dl_dir.qq.com
ping: cannot resolve dl_dir.qq.com: Unknown server error
xx# ping custom_1.himynews.com                                        
ping: cannot resolve custom_1.himynews.com: Unknown server error
xx# ping custom_2.himynews.com                                        
ping: cannot resolve custom_2.himynews.com: Unknown server error
xx# 


can't ping if the domain have an "_" character ;

in other os is ok!

under linux
[root@test ~]# uname -a
Linux test.zytx.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
[root@test ~]# ping dl_dir.qq.com
PING dl_dir.tc.qq.com (60.28.230.163) 56(84) bytes of data.
64 bytes from 60.28.230.163: icmp_seq=0 ttl=55 time=37.8 ms

under windows xp
C:\Documents and Settings\xx>ping dl_dir.qq.com

Pinging dl_dir.tc.qq.com [60.28.230.164] with 32 bytes of data:

Reply from 60.28.230.164: bytes=32 time=121ms TTL=54

Ping statistics for 60.28.230.164:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 121ms, Maximum = 121ms, Average = 121ms
Control-C
^C
C:\Documents and Settings\xx>
>How-To-Repeat:
if domain name have an "_" character problem is happend
>Fix:
i don't known fix this bug!
in now,i am write the hostname and ip in /etc/hosts

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Fri Nov 14 14:30:24 UTC 2008 
Responsible-Changed-Why:  
Not a kernel issue 

http://www.freebsd.org/cgi/query-pr.cgi?pr=128858 

From: Rui Paulo <rpaulo@fnop.net>
To: xjt <xjtdy888@163.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/128858: can't ping have _ character domain
Date: Fri, 14 Nov 2008 14:33:29 +0000

 On 14 Nov 2008, at 03:27, xjt wrote:
 
 >
 >> Number:         128858
 >> Category:       i386
 >> Synopsis:       can't ping have _ character domain
 >> Confidential:   no
 >> Severity:       non-critical
 >> Priority:       high
 >> Responsible:    freebsd-i386
 >> State:          open
 >> Quarter:
 >> Keywords:
 >> Date-Required:
 >> Class:          sw-bug
 >> Submitter-Id:   current-users
 >> Arrival-Date:   Fri Nov 14 03:30:06 UTC 2008
 >> Closed-Date:
 >> Last-Modified:
 >> Originator:     xjt
 >> Release:        7.0-RELEASE FreeBSD
 >> Organization:
 >> Environment:
 > xx# uname -a
 > FreeBSD xx.xx 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24  
 > 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/ 
 > sys/GENERIC  i386
 >
 >> Description:
 > xx# ping dl_dir.qq.com
 > ping: cannot resolve dl_dir.qq.com: Unknown server error
 > xx# ping custom_1.himynews.com
 > ping: cannot resolve custom_1.himynews.com: Unknown server error
 > xx# ping custom_2.himynews.com
 > ping: cannot resolve custom_2.himynews.com: Unknown server error
 > xx#
 >
 >
 > can't ping if the domain have an "_" character ;
 >
 > in other os is ok!
 >
 > under linux
 > [root@test ~]# uname -a
 > Linux test.zytx.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005  
 > i686 i686 i386 GNU/Linux
 > [root@test ~]# ping dl_dir.qq.com
 > PING dl_dir.tc.qq.com (60.28.230.163) 56(84) bytes of data.
 > 64 bytes from 60.28.230.163: icmp_seq=0 ttl=55 time=37.8 ms
 >
 > under windows xp
 > C:\Documents and Settings\xx>ping dl_dir.qq.com
 >
 > Pinging dl_dir.tc.qq.com [60.28.230.164] with 32 bytes of data:
 >
 > Reply from 60.28.230.164: bytes=32 time=121ms TTL=54
 >
 > Ping statistics for 60.28.230.164:
 >    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
 > Approximate round trip times in milli-seconds:
 >    Minimum = 121ms, Maximum = 121ms, Average = 121ms
 > Control-C
 > ^C
 > C:\Documents and Settings\xx>
 >> How-To-Repeat:
 > if domain name have an "_" character problem is happend
 >> Fix:
 > i don't known fix this bug!
 > in now,i am write the hostname and ip in /etc/hosts
 >
 >> Release-Note:
 >> Audit-Trail:
 >> Unformatted:
 > _______________________________________________
 > freebsd-i386@freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-i386
 > To unsubscribe, send any mail to "freebsd-i386- 
 > unsubscribe@freebsd.org"
 
 
 We follow the RFC guidelines. I can't remember the RFC number on top  
 of my head, but hostnames can only contain numbers, letters and the  
 hyphen (except in the beginning of the hostname). Other characters are  
 not allowed.
 
 This PR can be closed because this is not a problem with FreeBSD.
 
 Regards,
 --
 Rui Paulo
 
State-Changed-From-To: open->closed 
State-Changed-By: delphij 
State-Changed-When: Fri Nov 14 19:16:14 UTC 2008 
State-Changed-Why:  
Duplicate of 128862. 


Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: delphij 
Responsible-Changed-When: Fri Nov 14 19:16:14 UTC 2008 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=128858 
>Unformatted:
