Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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 .
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 ?
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.
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
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.