Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: localhost and numbers

  1. #1
    Senior Member
    Join Date
    Nov 2001
    Posts
    269

    localhost and numbers

    After switching from dial up to cable DSL the heading (localhost, etc) has been changed to a long series of numbers and letters (1-6-00-c0, etc, etc).
    Not sure how I did that - how do I switch it back again? The cable works great (and fast).

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    472

    Re: localhost and numbers

    Your hostname is being overwritten by DHCP. What does /etc/HOSTNAME or /etc/hostname have in it? And what is in /etc/hosts?

  3. #3
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re: localhost and numbers

    It may be the MAC address for your NIC card. It seems that the DHCP service is getting a new hostname or something for your PC. You could try changing it back to what you want, re-start eth0 back up and see if you still have that hostname.

  4. #4

    Re: localhost and numbers

    What's cable DSL?

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Posts
    269

    Re: localhost and numbers

    Have it thru Earthlink. Have used Mindspring (owned by Earthlink) for a number of years and did not want to change. In my area it is provided thru Time Warner Cable. Speed is truly amazing (after dialup).
    What's cable DSL?

  6. #6
    Senior Member
    Join Date
    Nov 2001
    Posts
    269

    Re: localhost and numbers

    Could not find a /etc/hostname - only /etc/hosts/ - is contains:

    127. (and numbers) then "localdomain localhost"
    24.17 (and numbers) then "papanohair@mindspring.com" (lots of spaces) "papanohair@mindspring"
    Your hostname is being overwritten by DHCP. What does /etc/HOSTNAME or /etc/hostname have in it? And what is in /etc/hosts?

  7. #7
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: localhost and numbers


    In my area it is provided thru Time Warner Cable.
    Well then, it's a cable. Cable is provided through the cable ( that's you get your TV channels ). DSL is provided through regular telephone line. Both technologies are broadband access. There is no such thing as cable DSL though .... ;D

  8. #8
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: localhost and numbers


    Could not find a /etc/hostname - only /etc/hosts/ - is contains:

    127. (and numbers) then "localdomain localhost"
    24.17 (and numbers) then "papanohair@mindspring.com" (lots of spaces) * * *"papanohair@mindspring"
    The /etc/hosts is for DNS static routes. That's what your system looked for first before querying DNS server when you enter domain name.

    If you are using Red Hat based distro ( such as Mandrake or something ), the /etc/hostname had been eliminated and moved to /etc/sysconfig/network file. In that network file, it should have setting for it.

    My /etc/sysconfig/network file had these entries.
    Code:
    NETWORKING=yes
    HOSTNAME=supra <---- that's my hostname
    GATEWAY=12.234.XXX.XXX <--- that's for my ISP's DSLAM address
    HTH ...

  9. #9

    Re: localhost and numbers

    If ISP uses reverse DNS then they will assign your hostname.

  10. #10
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re: localhost and numbers

    Well if Elovkoff is correct, cant papanohair just change his hostname after the NIC is brought up? He could put it in his cron or something, have a script that waits 2 minutes and have cron run it at boot every time. Just a thought.

Similar Threads

  1. Does localhost need to be in the routing table?
    By epicac in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 10-20-2006, 03:10 PM
  2. REALLY BIG NUMBERS
    By Fatal Error in forum General Chat
    Replies: 1
    Last Post: 12-25-2005, 08:08 PM
  3. cant even ping localhost
    By sivaram_swdw in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 05-30-2005, 12:10 AM
  4. Can't ftp to server (not even to localhost)
    By tob in forum Linux - General Topics
    Replies: 1
    Last Post: 11-07-2004, 07:13 PM
  5. random vector of numbers
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 01-10-2003, 09:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •