Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemas para acceder a URLs con guión antes del punto.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
abecedarix
n00b
n00b


Joined: 16 Apr 2007
Posts: 74

PostPosted: Tue Dec 04, 2007 7:17 pm    Post subject: Problemas para acceder a URLs con guión antes del punto. Reply with quote

Me ha sorprendido el leer http://meneame.net/story/linux-no-capaz-acceder-urls-guion-nombre y por lo que parece no distingue entre navegadores ni distros. ¿A qué se debe esto (por ejemplo, no se puede acceder a http://gui-.deviantart.com/)? En Ubuntu tienen el bug abierto: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/121467 ¿alguien tiene alguna explicación de por qué pasa esto?

Edito: también parece que sólo ocurre con subdominios.
Back to top
View user's profile Send private message
pcmaster
Advocate
Advocate


Joined: 04 Dec 2003
Posts: 2222
Location: Barcelona

PostPosted: Tue Dec 04, 2007 9:19 pm    Post subject: Reply with quote

Sí, es muy curioso. Además, el bug lleva tiempo: si te fijas en el hilo de ubuntu

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/121467

el primer mensaje es de junio, y estamos ya en diciembre.

He hecho algunas pruebas y no es problema del navegador: un simple ping devuelve un mensaje de unknown host, pero mediante el comando DIG, preguntando directamente a los servidores DNS, sí es posible obtener la IP:

Code:
$ dig @198.172.81.4 http://i--.deviantart.com

; <<>> DiG 9.4.1-P1 <<>> @198.172.81.4 http://i--.deviantart.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22619
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;http://i--.deviantart.com.     IN      A

;; ANSWER SECTION:
http://i--.deviantart.com. 3600 IN      A       198.172.81.21

;; AUTHORITY SECTION:
deviantart.com.         259200  IN      NS      a.ns.deviantart.com.
deviantart.com.         259200  IN      NS      b.ns.deviantart.com.

;; ADDITIONAL SECTION:
a.ns.deviantart.com.    259200  IN      A       198.172.81.4
b.ns.deviantart.com.    259200  IN      A       66.28.104.5

;; Query time: 227 msec
;; SERVER: 198.172.81.4#53(198.172.81.4)
;; WHEN: Tue Dec  4 22:15:00 2007
;; MSG SIZE  rcvd: 126


El DIG lo hice desde el principio, uno tras otro, es decir, primero un dig sin parámetros que devuelve la IP de los root-servers, luego un dig a uno de ellos que devuelve los dns del .com, después otro a uno de los dns de .com que devuelve la IP del servidor dns de deviantart.com y por último otro dig a dicho servidor (el que he puesto) que devuelve, en su ANSWER SECTION, la respuesta correcta.

Sin embargo ningún navegador, ni mozilla, ni lynx, ni Internet explorer sobre wine, ni siquiera el ping (que no usa http siquiera) son capaces de convertir el nombre i--.deviantart.com en una dirección IP (obtienen un mensaje de unknown host).

Haciendo otros dig obtengo esto:

Al router (hace de servidor dns)

Code:
$ dig @192.168.1.1 i--.deviantart.com

; <<>> DiG 9.4.1-P1 <<>> @192.168.1.1 i--.deviantart.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51123
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;i--.deviantart.com.            IN      A

;; ANSWER SECTION:
i--.deviantart.com.     181     IN      A       198.172.81.21

;; Query time: 2 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Dec  4 22:43:38 2007
;; MSG SIZE  rcvd: 52


y a mi propio servidor dns:

Code:
$ dig @192.168.1.253 i--.deviantart.com

; <<>> DiG 9.4.1-P1 <<>> @192.168.1.253 i--.deviantart.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20534
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;i--.deviantart.com.            IN      A

;; ANSWER SECTION:
i--.deviantart.com.     3523    IN      A       198.172.81.21

;; AUTHORITY SECTION:
deviantart.com.         254416  IN      NS      a.ns.deviantart.com.
deviantart.com.         254416  IN      NS      b.ns.deviantart.com.

;; Query time: 3 msec
;; SERVER: 192.168.1.253#53(192.168.1.253)
;; WHEN: Tue Dec  4 22:43:43 2007
;; MSG SIZE  rcvd: 87


Hay respuesta, y eso que ambos usan linux (el router es un livebox de Orange cuyo firmware está basado en linux y mi servidor usa Gentoo). El router supongo que reenvía las peticiones a los dns de Orange, el mío tiene instalado un BIND.

Es decir, BIND, sobre linux, actúa correctamente. Así que, si no me equivoco, el fallo parece estar en el cliente DNS de linux.


Muy curioso.
_________________
pcmaster
Back to top
View user's profile Send private message
inconexo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Aug 2005
Posts: 144

PostPosted: Wed Dec 05, 2007 12:47 pm    Post subject: Re: Problemas para acceder a URLs con guión antes del punto. Reply with quote

Bueno, pues esta claro :)

Viendo http://tools.ietf.org/html/rfc1034, hay un parrafo que dice:

Quote:
The labels must follow the rules for ARPANET host names. They must
start with a letter, end with a letter or digit, and have as interior
characters only letters, digits, and hyphen. There are also some
restrictions on the length. Labels must be 63 characters or less.


Por tanto, es bueno que no funcione, y ojala nunca lo haga: sera sintoma de que al menos alguien sigue respetando los estandares

Un saludo!

Pd. recuerdo cuando hace años se me ocurrio crear un hostvirtual 3d.xxx.xxx y fallaba por el mismo motivo
Back to top
View user's profile Send private message
Stolz
Moderator
Moderator


Joined: 19 Oct 2003
Posts: 3028
Location: Hong Kong

PostPosted: Wed Dec 05, 2007 2:52 pm    Post subject: Reply with quote

It's not a bug, it's a feature
Back to top
View user's profile Send private message
sirope
Guru
Guru


Joined: 16 Jan 2007
Posts: 490
Location: /home/sirope

PostPosted: Wed Dec 05, 2007 3:57 pm    Post subject: Reply with quote

Me pregunto si los *BSD's y Solaris respetarán la norma.... :? :?
Back to top
View user's profile Send private message
pcmaster
Advocate
Advocate


Joined: 04 Dec 2003
Posts: 2222
Location: Barcelona

PostPosted: Wed Dec 05, 2007 5:13 pm    Post subject: Reply with quote

Entonces, el bug está en la propia página web de deviantart.com, que permite crear usuarios con un nombre tal que para acceder a su página hay que usar una URL que no cumple las normas.

¿Véis como, al final, sí es un bug?

:twisted: :twisted:
_________________
pcmaster
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum