Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Settings Hostnames

    In the recent weeks, I have had great success setting up my MythTV Backend/Frontend Combo system on my Fedora Core 7 computer. I am forever indebted to all of you for your help with that .
    Now I'd like to go further with my setup; I'd like to set up an older Ubuntu system I have to connect with my MythTV server. So I have the frontend installed on the Ubuntu system, but I am unable to connect to the server. From what I'm experiencing, its not an issue with Myth so much as it is with my Linux networking setup. For startings, I was hoping to seek some advice for setting a Hostname. From what I know about Windows, the Hostname identifies the computer, but I've learned the hard way that Linux works differently. My Fedora box was originally named Mars under Windows, and my Ubuntu box was originally named Saturn under Windows. Up until now, I've kept the preinstalled "LocalHost..." as the hostnames. Could someone help me setup my two hostnames properly? I'd greatly appreciate any help!
    Thanks a ton!
    The Bird Man

  2. #2


    Allow me to clarify my first question

    I've tested both computers with the command "Hostname," and both reply with the names I've set: Saturn and Mars. The two computers are connected through a simple Linksys router, with a few hubs/switches in between. Still, neither computer can ping the other's hostname, but they do return different results:

    On my Ubuntu computer, Saturn, I get the following result--
    peter@Saturn:~$ ping mars
    PING mars.Saturn ( 56(84) bytes of data.

    --- mars.Saturn ping statistics ---
    16 packets transmitted, 0 received, 100% packet loss, time 15068ms
    HOWEVER, I have set a static IP on Mars, my Fedora computer, which I can ping--
    peter@Saturn:~$ ping
    PING ( 56(84) bytes of data.
    64 bytes from icmp_seq=1 ttl=64 time=0.463 ms
    64 bytes from icmp_seq=2 ttl=64 time=0.201 ms
    64 bytes from icmp_seq=3 ttl=64 time=0.190 ms
    64 bytes from icmp_seq=4 ttl=64 time=0.188 ms

    --- ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 0.188/0.260/0.463/0.118 ms

    When I ping Saturn, my Ubuntu box, from Mars, I'm simply told that Saturn is an unknown host.

    By now, I think I've narrowed the problem down to my Fedora computer, Mars.

    Could someone help me properly set up my hostnames? Thanks a million!

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    West Yorks
    You need to edit /etc/hosts on each computer and put something like
    Code:       localhost.localdomain   localhost
    ::1             localhost6.localdomain6 localhost6   saturn.somedomain    saturn   mars.somedomain      mars
    Basically you are telling each system which IP address matches a certain host. For the part I listed as "somedomain", I use a completely made up domain name (home.lan). Don't use any TL domains unless you actually own them.

  4. $spacer_open

Posting Permissions

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