On Mon, 30 Jun 2008, Stephane Bortzmeyer wrote:
On Mon, Jun 30, 2008 at 05:49:18AM -0700,
David Conrad <drc@xxxxxxxxxxxxxxx> wrote
a message of 11 lines which said:
Speaking technically, how would you distinguish the top-level domain
"127.0.0.1" from the IP address 127.0.0.1?
A word while passing here: is there a document (RFC, Posix standard,
whatever) which says which is the right result in such a case?
POSIX (IEEE Std 1003.1, 2004 Edition, aka the Single UNIX Specification,
Version 3) specifies both inet_pton() and inet_addr(). The latter is
required to accept the 'traditional' forms for IPv4 addresses with fewer
than four components or using hex or octal numbers. Contrawise, the
former is forbidden from accepting such forms.
So the answer from that direction is "it depends".
Philip Guenther
_______________________________________________
Ietf@xxxxxxxx
https://www.ietf.org/mailman/listinfo/ietf