Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    man hosts

    You can add lines.

  3. #3
    Just 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

Posting Permissions

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