ispCP - Board - Support
How setup hosts file when I have two IP's VPS ? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: How setup hosts file when I have two IP's VPS ? (/thread-16127.html)



How setup hosts file when I have two IP's VPS ? - petru - 06-14-2012 05:04 PM

I have a question, I wish I setup the hosts file as described here:
http://isp-control.net/documentation/howto/hostname
but I have two fixed IP's. I thought to fill the file like this:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1    localhost.localdomain localhost
<ip1>            myserver.server1.mydomain.com  myserver
<ip2>            myserver.server2.mydomain.com  myserver

# The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)
::1     ip6-localhost ip6-loopback
feo0::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

but I do not know if it's setup well!
Above, the name's: server1.mydomain.com and server2.mydomain.com are some name servers
created in the provider domain (web).

So, I setup well hosts file ?


RE: How setup hosts file when I have two IP's VPS ? - petru2012 - 06-17-2012 04:45 PM

I found the answer to the question above.