Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

localhost > localhost.com hell

Options
  • 30-09-2011 11:55am
    #1
    Registered Users Posts: 459 ✭✭


    I want to bind localhost.com to localhost, it should be simple right?...but here is my hosts file:
    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    # localhost name resolution is handled within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost

    127.0.0.1 localhost
    localhost.com localhost
    when I go to localhost.com (in any browser) I get nothing
    When I ping localhost.com:
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.


    C:\Users>ping localhost.com

    Pinging localhost.com [64.99.64.32] with 32 bytes of data:
    Request timed out.
    Reply from 64.99.64.32: bytes=32 time=1620ms TTL=245
    Reply from 64.99.64.32: bytes=32 time=121ms TTL=245
    Reply from 64.99.64.32: bytes=32 time=123ms TTL=245

    Ping statistics for 64.99.64.32:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 121ms, Maximum = 1620ms, Average = 621ms

    What's with 64.99.64.32?

    Anyone any idea whats going on please?


Comments

  • Registered Users Posts: 9,294 ✭✭✭markpb


    Try
    localhost localhost.com
    or
    127.0.0.1 localhost.com
    instead of the other way round?


  • Registered Users Posts: 459 ✭✭CSU


    markpb wrote: »
    Try instead of the other way round?

    In the words of the great H.J.Simpson

    "DoH!"

    *FACEPALM*

    :P

    Thanks mark


  • Registered Users Posts: 9,294 ✭✭✭markpb


    :)


Advertisement