From nobody@FreeBSD.org  Sun Jan 16 18:14:29 2011
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 71B021065679
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jan 2011 18:14:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 60EBE8FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jan 2011 18:14:29 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p0GIETnb054096
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Jan 2011 18:14:29 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p0GIETcW054095;
	Sun, 16 Jan 2011 18:14:29 GMT
	(envelope-from nobody)
Message-Id: <201101161814.p0GIETcW054095@red.freebsd.org>
Date: Sun, 16 Jan 2011 18:14:29 GMT
From: Breeze <breeze.fbn@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Server Unknown Error while resolve ip by the name with minus before dot
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         154060
>Category:       bin
>Synopsis:       host(1): Server Unknown Error while resolve ip by the name with minus before dot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 16 18:20:10 UTC 2011
>Closed-Date:    
>Last-Modified:  Sun Jan 16 23:07:39 UTC 2011
>Originator:     Breeze
>Release:        FreeBSD 8.2-PRERELEASE
>Organization:
Fishbone Crew
>Environment:
uname -a
FreeBSD magictower.usys.su 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #2: Mon Jan 10 10:41:12 EET 2011     breeze@magictower.usys.su:/usr/obj/usr/src/sys/DRAGON  i386
>Description:
You've probably heard about the site deviantart.com. This site has a user account with "zi-" name and complete address is http://zi-.deviantart.com . When I try resolves this address using nslookup (dig or host) is not a problem but when trying to open this address from any browser or execute the command ping for this host, I get the error "ping: cannot resolve zi-.deviantart.com: Unknown server error"

Nevertheless, if the address register in the /etc/hosts "199.15.160.42 zi-.deviantart.com" problem is solved.

I think that the system does not properly handle dns names with a minus in front of the dot, since if the minus is between letters is not a problem.

p.s. The problem was not detected in OS windows >_<
>How-To-Repeat:
make "ping zi-.deviantart.com" and get the error message
>Fix:
Is't very good idea but as temporally solution write string in the /etc/hosts file for each problematic address :(

>Release-Note:
>Audit-Trail:

From: "Vladislav V. Prodan" <universite@ukr.net>
To: Breeze <breeze.fbn@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/154060: Server Unknown Error while resolve ip by the name
 with	minus before dot
Date: Mon, 17 Jan 2011 00:27:16 +0200

 # host -v zi-.deviantart.com
 host: convert UTF-8 textname to IDN encoding: prohibited character found
 
 -- 
 Vladislav V. Prodan
 VVP24-UANIC
 +38[067]4584408
 +38[099]4060508
 vlad11@jabber.ru
>Unformatted:
