Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

localhost > localhost.com hell

  • 30-09-2011 11:55AM
    #1
    Registered Users, Registered Users 2 Posts: 460 ✭✭


    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, Registered Users 2, Paid Member Posts: 9,469 ✭✭✭markpb


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


  • Registered Users, Registered Users 2 Posts: 460 ✭✭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, Registered Users 2, Paid Member Posts: 9,469 ✭✭✭markpb


    :)


Advertisement
Advertisement