LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-04-2007, 11:00 AM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
name based virtual hosting with two ips


lo there all,
we are running a server at work that we are hosting several websites ( about 6 ) with name based virtual hosting in apache.

every once in a while our isp dies. Then we are out of buisness for a few hours until they fix whatever it was that crashed. Meanwhile, we need another isp to serve on. So, here are my questions. We are using zoneedit as a dns server.

So my questions are these:
how would i go about adding another ip address for each of the name based virtual hosts on our server?

can a domain name be resolved to two different ip addresses ? ( or, since we are going to be paying for the isp even when we don't need it, can we make use of the extra bandwidth to serve with ?)

can a seemless solution be had, or if we drop one isp, can we continue to serve up web pages without having to change things in the dns server or apache http.conf file?

any tips would be great, or links for good set up how-tos.
thansk
 
Old 07-05-2007, 04:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
name based virtual hosting doesn't care what IP address you listen on unless you explicitly make that the case, indeed the apache server doesn't have any idea what the external IP address that was resolved even was, assuming that this server is not directly internet facing (please please say you've a firewall or something infront of it..)

A dns name can resolve to multiple IP's but that won't provide you with resilience, as once one person has resolved it to the wrong IP, it's never going to connect, and not go back to DNS again.

i'd say that you either need to manually update these DNS records via the registrar during a failure, or look to run your own DNS server where you can directly change records. DNS can take hours and hours to fully propagate though, so by the time you can guarentee the change is made, it may not be a problem any more.
 
Old 07-05-2007, 07:28 AM   #3
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok, well, i guess i should have thought about the fact that apache does not know the external ip, we are behind a firewall/router, so our web server thinks it's at 10.10.10.9

So, if i use bind, or somesuch DNS server locally, and we loose our primary ISP, we are still basically down until we make the changes propagate through DNS ? rats..

So, really, what do you reckon would still be the best solution for this? The way it sounds, i would only want the backup isp to be pointed at our server if we went down ( since the bandwidth from that isp would be less than half of what we get from our main ISP ). Is this right?

thanks for your help.
 
Old 07-05-2007, 07:29 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i would suggest either getting a better ISP, or pay for proper hosting with 99.999% availability SLA's
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and IP - Based virtual Hosting shawnbishop Linux - Software 2 10-27-2006 09:56 AM
name based virtual hosting jkmartha Linux - Software 4 08-04-2005 09:21 AM
name based virtual hosting adm1329 Linux - Networking 5 05-05-2004 11:30 AM
named based virtual hosting newbie nickblue Linux - Networking 9 08-04-2003 11:39 PM
name-based virtual hosting and corresponding DNS entries roba Linux - General 0 08-14-2002 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration