LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
 
LinkBack Search this Thread
Old 11-03-2009, 07:52 AM   #1
sparkshankar
Member
 
Registered: Aug 2009
Posts: 30

Rep: Reputation: 15
DNS Question


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
 
Old 11-03-2009, 08:13 AM   #2
sparkshankar
Member
 
Registered: Aug 2009
Posts: 30

Original Poster
Rep: Reputation: 15
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
 
Old 11-03-2009, 08:45 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,595

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
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 08:48 AM.
 
Old 11-03-2009, 11:44 PM   #4
sparkshankar
Member
 
Registered: Aug 2009
Posts: 30

Original Poster
Rep: Reputation: 15
Hello,



Is there an alternative for RRDNS ?


Thanks
Shankar.S
 
Old 11-03-2009, 11:50 PM   #5
sparkshankar
Member
 
Registered: Aug 2009
Posts: 30

Original Poster
Rep: Reputation: 15
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
 
Old 11-04-2009, 02:01 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,595

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
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
 
Old 11-04-2009, 05:17 AM   #7
sparkshankar
Member
 
Registered: Aug 2009
Posts: 30

Original Poster
Rep: Reputation: 15
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
 
Old 11-04-2009, 05:18 AM   #8
sparkshankar
Member
 
Registered: Aug 2009
Posts: 30

Original Poster
Rep: Reputation: 15
Hello,


Is there an alternative for RRDNS ?


Thanks
Shankar.S
 
Old 11-04-2009, 05:29 AM   #9
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,595

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 08:44 AM
DNS Question? rufius Linux - Networking 1 09-28-2003 05:28 PM
DNS question... NMX Linux - Networking 2 01-12-2002 09:18 PM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 05:59 PM
dns question -- new to dns gadhiraju Linux - General 2 05-09-2001 07:44 AM


All times are GMT -5. The time now is 10:50 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration