LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 11-03-2009, 08:52 AM   #1
sparkshankar
LQ Newbie
 
Registered: Aug 2009
Posts: 24
Thanked: 0
DNS Question


[Log in to get rid of this advertisement]
Hello,


Suppose that a domain is hosted on multiple servers located geographically . So that domain will be having multiple ips .

I have some questions based on this

1 ) Does this domain have multiple db records ? if yes where would the db records be present ? if no , will the db record contain multiple ips for the domain

============================================================
e.g. if the domain is test.com , then will the db record be like


......................
.....................
test.com. IN A IP1
test.com. IN A IP2
test.com. IN A IP3


=================================================================


If there cant be multiple ips on a single db record , then how come i get multiple ips for the following command .

========================================================

sh-3.2# dig yahoo.com

; <<>> DiG 9.3.4-P1 <<>> yahoo.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29030
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;yahoo.com. IN A

;; ANSWER SECTION:
yahoo.com. 14480 IN A 209.191.93.53
yahoo.com. 14480 IN A 69.147.114.224
yahoo.com. 14480 IN A 209.131.36.159

;; Query time: 468 msec
;; SERVER: 4.2.2.1#53(4.2.2.1)
;; WHEN: Tue Nov 3 19:13:56 2009
;; MSG SIZE rcvd: 75

=================================================



2 ) If a domain is hosted in multiple servers that spans geographically , what DNS method is used to service a client ( browser ) request with what ip ? i.e. who decides which ip to be served to the requesting client ? suppose that all the dns caches are cleared at all the levels ( at the client level , at the ISP level , and at the higher level too ) . So just suppose that the request ultimately reaches the root name servers in search of ip .



Really appreciate your help


Thanks
Shankar.S
linux sparkshankar is offline     Reply With Quote
Old 11-03-2009, 09:13 AM   #2
sparkshankar
LQ Newbie
 
Registered: Aug 2009
Posts: 24
Thanked: 0

Original Poster
Hello,


On searching further , i came across RRDNS ( Round Robin DNS ) that will serve a random ip for a client request . So i hope there is only a single db record with multiple A records for the domain .

Is there a way other than using /etc/hosts to make the domain resolve to a particular ip ( server ) of my interest ?



Thanks
Shankar.S
linux sparkshankar is offline     Reply With Quote
Old 11-03-2009, 09:45 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,044
Thanked: 224
Hi,

Round robin is used for server load balancing among several servers. It can be easily done using multiple A records for the same host in the domain's zone file.

Regarding the geographical redirection for a server there is a patch for bind.

Last edited by bathory; 11-03-2009 at 09:48 AM..
linuxslackware bathory is offline     Reply With Quote
Old 11-04-2009, 12:44 AM   #4
sparkshankar
LQ Newbie
 
Registered: Aug 2009
Posts: 24
Thanked: 0

Original Poster
Hello,



Is there an alternative for RRDNS ?


Thanks
Shankar.S
linux sparkshankar is offline     Reply With Quote
Old 11-04-2009, 12:50 AM   #5
sparkshankar
LQ Newbie
 
Registered: Aug 2009
Posts: 24
Thanked: 0

Original Poster
Hello,


So simply giving multiple A records in the zone file will load balance the server ? or is there anything else to be done to enable RRDNS ?


Actually where is this RRDNS implemented ? Who has the privilege to do this ? People who are maintaining the root nameservers ?



Thanks
Shankar.S
linux sparkshankar is offline     Reply With Quote
Old 11-04-2009, 03:01 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,044
Thanked: 224
Quote:
So simply giving multiple A records in the zone file will load balance the server ? or is there anything else to be done to enable RRDNS ?
Yes using multiple A records for a host, allows bind to respond to a query for a host by giving the next ip address in a round robin fashion.

Quote:
Actually where is this RRDNS implemented ? Who has the privilege to do this ? People who are maintaining the root nameservers ?
For a dns server authoritative for a domain, this is done by the people responsible for that dns server.
If you are responsible for the domain.com, you have to setup the zone file for that domain like this:
Code:
domain.com. A 1.1.1.1
domain.com. A 2.2.2.2
domain.com. A 3.3.3.3
Regards
linuxslackware bathory is offline     Reply With Quote
Old 11-04-2009, 06:17 AM   #7
sparkshankar
LQ Newbie
 
Registered: Aug 2009
Posts: 24
Thanked: 0

Original Poster
Hello,


So basically if you install bind ( or any other dns package . Are there any other dns package other than bind ? Do you use the same windows compatible bind if you are using windows server ? ) RRDNS is default right ?


Thanks
Shankar.S
linux sparkshankar is offline     Reply With Quote
Old 11-04-2009, 06:18 AM   #8
sparkshankar
LQ Newbie
 
Registered: Aug 2009
Posts: 24
Thanked: 0

Original Poster
Hello,


Is there an alternative for RRDNS ?


Thanks
Shankar.S
linux sparkshankar is offline     Reply With Quote
Old 11-04-2009, 06:29 AM   #9
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 5,044
Thanked: 224
Quote:
So basically if you install bind ( or any other dns package . Are there any other dns package other than bind ? Do you use the same windows compatible bind if you are using windows server ? ) RRDNS is default right ?
For bind (as I don't know for others), RRDNS is default behavior if you define multiple A records for the same host.
For other dns software take a look here

Quote:
Is there an alternative for RRDNS ?
You can use load balancing, either software based (like reverse proxies etc), or hardware based.

Regards
linuxslackware bathory is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
A DNS learner's question->Is my DNS configuration right? saagar Linux - Newbie 4 01-12-2009 09:44 AM
DNS Question? rufius Linux - Networking 1 09-28-2003 06:28 PM
DNS question... NMX Linux - Networking 2 01-12-2002 10:18 PM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 06:59 PM
dns question -- new to dns gadhiraju Linux - General 2 05-09-2001 08:44 AM


All times are GMT -5. The time now is 01:41 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration