Portal Home > Knowledgebase > Articles Database > how to Assign 2 ip's for domain name ?


how to Assign 2 ip's for domain name ?




Posted by boxer, 12-29-2009, 12:15 AM
Hello, i moved to good dc againts ddos, and i have 2 ip's for my server, how could i assign 2 ip's like webhostingtalk.com ? how could i assign 2 ip's in the address, so anyone try to who's my domain well look like this with 2 ip's not 1 ?

Posted by activelobby4u, 12-29-2009, 12:55 AM
There is no point in creating the domain under 2 Ip's in the same server , as if the server is down, it does not do any good to you. You have to host your domain in two servers to achieve the advantage you are looking at . If you still want to do it http://httpd.apache.org/docs/2.0/vhosts/examples.html that should help you and make your changes in the dns as well

Posted by madaboutlinux, 12-29-2009, 05:00 AM
You will have to create 2 VirtualHost entries for the same domain using the 2 different IPs in the Apache configuration file (httpd.conf). Also make sure you have 2 A records for the domain in the DNS zone file of the domain under /var/named/ directory. But as said by "activelobby4u", they are of no use when both the IPs are on the same server. Once the server is down, everything is down.

Posted by activelobby4u, 12-29-2009, 05:07 AM
He doesn't have to create two virtual hosts , he can do it this way ======= NameVirtualHost 192.168.1.1 NameVirtualHost 172.20.30.40 DocumentRoot /www/server1 ServerName server.example.com ServerAlias server ===========

Posted by ianeeshps, 12-29-2009, 10:08 AM
boxer, can you tell us whats the use of two ip address....curios to know that?

Posted by madaboutlinux, 12-29-2009, 10:13 AM
may be trying to show as if his website is served from more than one server well, I don't see any other reason honestly...

Posted by DigitalLinx, 12-29-2009, 10:18 AM
If the two IPs have different uplinks it would make sense to use both of them on the same server, in case there's a network issue with either one of them. Still, you would have to edit the DNS zone so you wont lose 50% of your traffic from roundrobin DNS (if any)



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
SMTP or Full mail server (Views: 1581)
Hard drive problem (Views: 30492)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.