Results 1 to 3 of 3
Can anybody explain how I can set a hostname alias in RHEL5.
We are testing RHEL to replace our Solaris LDAP servers, one of the things we need is to ...
- 08-31-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 7
Hostname alias
Can anybody explain how I can set a hostname alias in RHEL5.
We are testing RHEL to replace our Solaris LDAP servers, one of the things we need is to be able to set a hostname alias on the public interface.
In solaris we can just update the /etc/hosts file to something like
ipaddress hostname alias1 alias2
Things looks alittle different in RHEL, the host file only contains
127.0.0.1 hostname.fqdn localhost.localdomain localhost
I read about the sysconfig/network files but can only see about changing the hostname there and nothing about setting a different alias.
Thanks
Gary
- 08-31-2010 #2
man hosts
You can add lines.
- 08-31-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 7
Ok got it, I was not sure if I could just add the same ip address in the hosts file as specified in /etc/sysconfig/network and then add an extra alias to it.
Cheers


Reply With Quote