Python -url中的符号表示Firefox和urllib.request中的错误

Python -url中的符号表示Firefox和urllib.request中的错误,python,firefox,web,urllib2,urllib,Python,Firefox,Web,Urllib2,Urllib,some-.site.com在从Firefox或Python urllib.request打开时出错,但在Chrome中工作。 有什么问题吗 firefox中的输出: Server not found 在Python中: socket.gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: File "/usr/lib/p

some-.site.com在从Firefox或Python urllib.request打开时出错,但在Chrome中工作。 有什么问题吗

firefox中的输出:

Server not found
在Python中:

socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
File "/usr/lib/python3.3/urllib/request.py", line 1251, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
socket.gaierro:[Errno-2]名称或服务未知
在处理上述异常期间,发生了另一个异常:
文件“/usr/lib/python3.3/urllib/request.py”,第1251行,打开
引发URL错误(err)
urllib.error.urleror:

URL中的-符号在哪里?举一个你试图打开的URL的例子。任何带有xxx-.xx.xx的URL都会出错。Chrome会把你带到哪里?这不是有效的DNS主机名。RFC3986说它作为URL有效,但RFC1035说连字符只能用作DNS名称中的“内部”字符(第一个和最后一个必须是字母或数字)。我很好奇
socket.gethostbyname('some-.site.com')
的作用。