Results 1 to 4 of 4

Thread: Can I use 2 localhost names on 1 server?

  1. #1
    Join Date
    Jun 2007
    Beans
    113
    Distro
    Ubuntu 10.04 Lucid Lynx

    Can I use 2 localhost names on 1 server?

    Hi. I want to use 2 localhost names in one Ubuntu server. Is there a way to do that?

    Like if say I like the name to be small and test so it go to the same server with both. So with samba folder with //small or //test it would go to the same place.

    I guess I could have to edit the /ect/host file some way?

    Would it be something like this:

    127.0.0.1 localhost.localdomain localhost localhost
    127.0.1.1 myubuntu.com small test

    I did do that but it don't work. Any one know if there is a way to do this?

    -Raymond Day

  2. #2
    Join Date
    May 2008
    Beans
    80

    Re: Can I use 2 localhost names on 1 server?

    I'm not sure I understand what you're trying to do here. Why would you want to use samba to share files - on the same computer that has access to the local filesystem?

    Anyway, maybe that's not important. Maybe try putting all the hostname aliases on the same line.

    Code:
    127.0.0.1 localhost.localdomain localhost myubuntu.com small test

  3. #3
    Join Date
    Jun 2007
    Beans
    113
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can I use 2 localhost names on 1 server?

    I have a old file with a network install and all over it has a name of a old server to go to. I copied the file to my Ubuntu server but I don't want to rename it just to use this install. So it be very good if could get to the same server with 2 samba names.

    It's very had to change were all the files point to on the install.

    -Raymond Day

  4. #4
    Join Date
    Nov 2007
    Beans
    38

    Re: Can I use 2 localhost names on 1 server?

    The hosts file only applies to the computer it is on. Since you are trying to connect to the Ubuntu server from a different computer, it's the other computer you are going to have to change the hosts file on. Your server is probably something like 192.168.0.100 to the other computers on the network (127.X.X.X is the local computer).

Tags for this Thread

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
  •