/etc/hosts file under Solaris with DHCP [1]

/etc/hosts file under Solaris with DHCP

Wednesday, May 15, 2002 8:38 AM

I understand after reading some of the posts that I need an entry in the /etc/hosts, file on the SUN I'm doing X into, with the PC's name and address where XManager is being run.

We are running DHCP and the IP address can't be counted on. It could be different the next time the PC is powered on. Is there another way to solve the same problem that works with DHCP?


Re: /etc/hosts file under Solaris with DHCP

Wednesday, May 15, 2002 11:09 AM - Support

You can add all IP addresses allocated by DHCP server in the /etc/hosts file. For example:

192.168.1.2 pc2
192.168.1.3 pc3
...
192.168.1.253 pc253

The pcname is meaningless but it should be unique each other.

/etc/hosts file is required when you are connecting using RLOGIN, RSH or REXEC service. For other connection methods, you don't have to add any name of your PC to /etc/hosts or DNS. A misconfiguration of DNS entry might cause a connection problem, so we recommend you to remove all entries of PCs from the name server.


Previous views: 133