So if my IP is XXX.XXX.XXX.42 I can expect misconfigured clients to be trying to connect to me constantly? What could possible go wrong!
Well, only if someone tries to go to http://XXX.XXX.XXX.42 , which seems rare. I can't think of a way to tell whether XXX.XXX.XXX.42 is an IP or a website from that string alone. You could require that no subdomain has four "parts" (i.e., A.B.C.42), but that's harsh. You could require that somewhere in the URL for a four-part numeric-TLD URL there be a character. You could also require that at least one of the parts…
.42: new experimental, all numeric top-level domain
21–30 of 46 posts
Re: .42: new experimental, all numeric top-level domain
#22Earlier quoted context omitted.
Well, only if someone tries to go to http://XXX.XXX.XXX.42 , which seems rare. I can't think of a way to tell whether XXX.XXX.XXX.42 is an IP or a website from that string alone. You could require that no subdomain has four "parts" (i.e., A.B.C.42), but that's harsh. You could require that somewhere in the URL for a four-part numeric-TLD URL there be a character. You could also require that at least one of the parts…
reading the rules from an rfc mentioned on the wiki, if XXX.XXX.XXX.42 is a valid IP address, the client should try to use that first, if not it should only then try to use DNS to resolve.
Re: .42: new experimental, all numeric top-level domain
#23split-DNS is not the answer.
Re: .42: new experimental, all numeric top-level domain
#24Before anyone wonders: No, this isn't an official TLD. The domains you register there won't resolve for anyone unless they futz with their nameserver settings. I'm not sure what to make of this. Looks like a bunch of hackers got really bored and perhaps had a beer too many...
Re: .42: new experimental, all numeric top-level domain
#25I would never have done that… on any software that is still in service, to my knowledge.
Edit: The right way is not to try to determine which it is, pass it to inet_pton() on the assumption that it is a numeric address. If that fails, then pass it in to getaddrinfo() to let DNS or whatever the host uses for names have a crack at it. gethostbyname is obsolete now.
Re: .42: new experimental, all numeric top-level domain
#26Before anyone wonders: No, this isn't an official TLD. The domains you register there won't resolve for anyone unless they futz with their nameserver settings. I'm not sure what to make of this. Looks like a bunch of hackers got really bored and perhaps had a beer too many...
[deleted]
Re: .42: new experimental, all numeric top-level domain
#27I can only imagine how many regexes this will break.
Re: .42: new experimental, all numeric top-level domain
#28Earlier quoted context omitted.
reading the rules from an rfc mentioned on the wiki, if XXX.XXX.XXX.42 is a valid IP address, the client should try to use that first, if not it should only then try to use DNS to resolve.
That certainly works, but it seems like a large part of this market would want numeric-only URLs, and so you couldn't have e.g., 1.2.3.4, or 1.1.2.3, etc.
Except for maybe douglasadams.42 ;)
Re: .42: new experimental, all numeric top-level domain
#29Why 42. Most of the early would be hackers and geeks and a prime number would seem way better.
Agreed, and as above, 42 is in the valid range for the 'D' part of an A.B.C.D ipv4 address. If the number were larger than 255, there would be no issue. How about 420? ... Okay, okay. 421 is prime.
Re: .42: new experimental, all numeric top-level domain
#30The really interesting thing here is the alternate DNS root that hosts the gimmick TLD. But it's not the first (remember AlterNIC?). Getting involved with this will teach you about DNS, and that's probably the best reason to do it --- but there are risks. (Frex, you're implicitly trusting whoever's running it to direct you back to the mainstream root servers for ".com", and not to an alternate ".com" on which selecte…
They do not seem to be hosting an alternate root themselves. They rely on http://wiki.global-anycast.net/index.php/Main_Page