We know an valid IPv4 address is each part not greater than 255, so, will 256.256.256.256
be considered a valid hostname rather an IP address?
I'm just curious how devices in various parts of the internet treat this kind of hostname?
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communityAs Steve has already pointed out ICANN bans all numeric TLDs. One can find a list of valid TLDs here at IANA.
This could be the end of this question but if one scrolls all the way down on this wikipedia article one can find TLDs which are in fact not managed or tracked by either ICANN or IANA. While Wikipedia is a bit nebulous how they exactly work they provide their respective TLDs so I tried looking up the one that did not have a fixed URL and found something.
You only need a DNSSEC which does not technically require a TLD that is registered with IANA. So you could register 256.256.256.256 as a "legit" URL
256.256.256.256
should be parsed as an invalid IP address, not as a host name under the TLD.256
. $\endgroup$256.256.256.256
relative to the local search-domain? It would only be a host in the256
TLD if it were256.256.256.256.
, or am I mistaken? I.e. if my local search-domain is set up to bexyz.local
, then a lookup for256.256.256.256
would, at some point in the lookup algorithm, also try to resolve256.256.256.256.xyz.local
, which is not an all-numeric TLD, and thus could succeed if I have set up that particular record in my name server. $\endgroup$