in reply to Does Perl always resolve localhost to loopback?

Any deviation from this behaviour is BROKEN.

See Section 4.1 of RFC1912, where localhost is defined as 127.0.0.1

Thanks for finding this Java bug ... which JDK (so I can remember not to use it)?

Updated:
I just tested this on my 1.3.1 JDK, and it did not act as you describe. Perhaps you are confusing InetAddress.getByName("localhost") and InetAddress.getLocalHost()?


Remember, when you stare long into the abyss, you could have been home eating ice cream.
  • Comment on Re: Does Perl always resolve localhost to loopback?

Replies are listed 'Best First'.
Re: Re: Does Perl always resolve localhost to loopback?
by pg (Canon) on Oct 18, 2003 at 02:25 UTC

    If I can ++ you twice, I will do it.

    • First ++ you, because your update did get me. Thanks. This is a very happy ending for me. I got something straightened, and can have a good night now. (I was frustrated, and almost thought that I was caught in another meaningless Java vs. Perl fighting, when I even didn't have the slightest intention of that.)
    • Secondly ++ you, because you have found that RFC. I appreciate your seriousness.

    Thank you again!