LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-22-2009, 12:33 AM   #1
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Multiple A records in DNS


Hi,

Is it possible to have multiple A records for a domain pointing to two different IP's from two different ISP's so as to avoid downtime if one of the ISP fails, similar to the lines what google has. I tried to test it internally but it does not seem to work.

What I did was this.

prasanta -> 192.168.4.117
prasanta -> 192.168.4.121

Both of the above are `A` records, but when 192.168.4.117 IP goes down, I am not able to ping `prasanta` with 192.168.4.121.

Please let me know, if some thing else needs to be done.

Regards,

--
Prasanta
 
Old 06-22-2009, 02:22 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

What you're doing now is called round robin
What you want to do is called high availability
 
Old 06-22-2009, 02:44 AM   #3
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Original Poster
Rep: Reputation: 37
Hi Bathory,

Quote:
What you're doing now is called round robin
What you want to do is called high availability
Thanks for the above. Will it be possible to do it for IP's from two different ISP's, with two different IP address class? As for a live example,

assamonnet.org -> 158.144.1.20
assamonnet.org -> 123.108.33.12

What I have noticed it that request are not moving to the other IP when the first one is unreachable and vice versa.

Regards,

--
Prasanta
 
Old 06-22-2009, 03:17 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Thanks for the above. Will it be possible to do it for IP's from two different ISP's, with two different IP address class? As for a live example,

assamonnet.org -> 158.144.1.20
assamonnet.org -> 123.108.33.12
Yes this is possible. As I told you it's called round robin and it's used to share the traffic of a busy site between different servers.
Quote:
What I have noticed it that request are not moving to the other IP when the first one is unreachable and vice versa.
What you want to do, is to implement a failover system, so when a server goes down the traffic is redirected to the other server. This is done with specific software and/or hardware.
 
Old 06-22-2009, 05:03 AM   #5
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Original Poster
Rep: Reputation: 37
Hi,
Quote:
What you want to do, is to implement a failover system, so when a server goes down the traffic is redirected to the other server. This is done with specific software and/or hardware.
Yes, using heartbeat one can do it. But I would not like to use this application for this.

------------
| Web Server |
------------
|
---------------------------------
| |
------------ ------------
| Firewall | | Firewall |
------------ ------------
| |
| |
ISP 1 ISP 2


Can this be also be done in the above mentioned scenario?

Regards,

--
Prasanta
 
Old 06-22-2009, 05:29 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Without a failover solution, if one server goes down, then with your scenario every 2nd request will fail. This is because of the way round robin works:
The 1st request goes to the 1st server, the 2nd request to the 2nd and in your case the 3rd will go again to the 1st server.
You can use ping to test this as follows::
Run ping assamonnet.org. The 1st time it will ping 158.144.1.20. Stop and rerun ping assamonnet.org and you'll see it will use 123.108.33.12
 
Old 06-22-2009, 06:37 AM   #7
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by bathory View Post
Without a failover solution, if one server goes down, then with your scenario every 2nd request will fail. This is because of the way round robin works
That is true, every second request fails. In the above scenario is there a possibility of putting the fail over, since it is one server which serves the request.

Regards,

--
Prasanta
 
Old 06-22-2009, 07:12 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You could try this to see if it fits your needs

Regards
 
  


Reply

Tags
multiple, records



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND DNS - MX, TXT and SPF records when hosting multiple domains on same machine? icebrian Linux - Networking 3 05-02-2011 08:21 AM
DNS NS's in registrar vs DNS NS records sopiaz57 Linux - Networking 7 06-06-2009 06:20 PM
DNS Zone Records - MX Records ddzc Linux - Software 8 05-24-2007 01:26 PM
DNS question, multiple records newlinuxnewbie Linux - General 2 10-28-2005 08:26 PM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:05 PM.

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