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 ...
- 12-08-2009 #1Just 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
- 12-08-2009 #2
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.
Voila.Code:1.2.3.4 hostname1 hostname1.your.domain
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.
- 12-08-2009 #3Just Joined!
- Join Date
- Dec 2009
- Posts
- 4
- 12-08-2009 #4Linux 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
- 12-09-2009 #5Just Joined!
- Join Date
- Dec 2009
- Posts
- 4
ok that worked but now my client says thats a unknown hostname how do i fix that
- 12-09-2009 #6
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.
- 12-09-2009 #7Just 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



