Find the answer to your Linux question:
Results 1 to 7 of 7
hey i got a lamp redhat server and i want to change the ip to a website address so that i don't need to put my server ip address in ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    4

    [SOLVED] lamp redhat server

    hey i got a lamp redhat server and i want to change the ip to a website address so that i don't need to put my server ip address in the address bar

    example i want like 0.0.0.0 to websiteaddress
    it's not on the internet it's like a intrAnet site so local

    greetings ricardo

    thanks if you ppl can help me

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Depends on the size of your intranet, the usage (e.g. mailserver need a bit more attention) and the number of users.

    If you have -say- 3 machines, just a webserver and you are the only user,
    simple entries in /etc/hosts might do.

    That is:
    Choose DNS conform hostnames for each IP.
    Add them to /etc/hosts on *each* of the machines.
    Be aware, that you will need to add the hosts to possible windows clients as well. The path to the hosts file is different there of course.
    Code:
    1.2.3.4   hostname1 hostname1.your.domain
    Voila.

    The trick is to keep all machines up to date.
    Add a few machines, and the hosts approach will result in a lot of work and is errorprone.

    So, for a real network, you will need a DNServer like bind.

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    4
    Quote Originally Posted by Irithori View Post
    Depends on the size of your intranet, the usage (e.g. mailserver need a bit more attention) and the number of users.

    If you have -say- 3 machines, just a webserver and you are the only user,
    simple entries in /etc/hosts might do.

    That is:
    Choose DNS conform hostnames for each IP.
    Add them to /etc/hosts on *each* of the machines.
    Be aware, that you will need to add the hosts to possible windows clients as well. The path to the hosts file is different there of course.
    Code:
    1.2.3.4   hostname1 hostname1.your.domain
    Voila.

    The trick is to keep all machines up to date.
    Add a few machines, and the hosts approach will result in a lot of work and is errorprone.

    So, for a real network, you will need a DNServer like bind.
    but that will only change my host name right if i do that lets say 192.168.1.1 myhost mydomain.com
    and i type WorldWideWeb.mydomain.com\ it can not find it and if it does work will it not only find my apache site and not my php site?

  4. #4
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    /etc/hosts

    Code:
    10.190.45.35     www.kickme.harder.please.now
    Code:
    ping www.kickme.harder.please.now
    10.190.45.35

  5. #5
    Just Joined!
    Join Date
    Dec 2009
    Posts
    4
    ok that worked but now my client says thats a unknown hostname how do i fix that

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Like I wrote.
    *All* machines in your intranet need the entries in *their* hosts file.
    Including your client machines.

    To overcome this, and actually be much more scaleable, you need a DNServer in your network.

  7. #7
    Just Joined!
    Join Date
    Dec 2009
    Posts
    4
    ooo man i love you (not in that way) *kisses you on the cheeks* YOU made my day
    and all the others thx for helping me

    it's solved now

Posting Permissions

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