Current time: 04-25-2024, 01:03 AM Hello There, Guest! (LoginRegister)


Post Reply 
How setup hosts file when I have two IP's VPS ?
Author Message
petru Offline
Banned

Posts: 6
Joined: Jun 2012
Post: #1
How setup hosts file when I have two IP's VPS ?
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 ?
06-14-2012 05:04 PM
Find all posts by this user Quote this message in a reply
petru2012 Offline
Newbie
*

Posts: 8
Joined: Jun 2012
Reputation: 0
Post: #2
RE: How setup hosts file when I have two IP's VPS ?
I found the answer to the question above.
06-17-2012 04:45 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)