Xmanager Forum

/etc/hosts file under Solaris with DHCP

Last post: Wednesday, May 15, 2002 11:09 AM by Support, 1 reply

Wednesday, May 15, 2002 8:38 AM

/etc/hosts file under Solaris with DHCP

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?
Wednesday, May 15, 2002 11:09 AM - Support

Re: /etc/hosts file under Solaris with DHCP

You can add all IP addresses allocated by DHCP server in the /etc/hosts file. For example: pc2 pc3
... 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.