Binand Raj S. wrote:

On Wed, Nov 20, 2002 at 03:21:07PM +0530, Sanjay Bhattacharya wrote:

You can use DNS round robin scheduling. For this your DNS records must have multiple IP's assigned to a single host. If host name lookup fails then the DNS supplies another IP.

Huh?? How is that possible?

Binand


You can have one host assigned multiple IP's by putting several A and PTR records in the zone files. For instance,

$ORIGIN testdom.com
test IN A 192.168.1.1
test IN A 192.168.1.2

and

$ORIGIN 1.168.192.in-addr.arpa
1 IN PTR test.testdom.com.
2 IN PTR test.testdom.com.

Now if a query is made for test.testdom.com and 192.168.1.1 doesn't respond, bind will supply 192.168.1.2 for the host. To answer your query, I think thats how it's possible.

Thanks for all that info, but I already knew all this (its something I
do to make a living). My question is:

How is it possible to have the DNS supply another IP if the host name
lookup itself fails for the name?? (Read again your initial post).

BTW, bind will not check if an IP is up before serving a DNS record. Its
upto the client to query again and again to get all the round robin IP
addresses. To ensure that this happens in a transparent way, you need to
set the TTL to a really low value (I keep mine at 300s).

Binand


Thanks for enlightening me on the topic. But I think I know what I've posted. For an host with multiple address records, the DNS server rotates the order that these records appear in the DNS response message with each successive reply. And if you care to read my initial post I exactly said that albeit in a different way. And thanks but no thanks for telling me something which I already know and probably most of the people dealing with networking do. It's a commonly known fact that the the client has to query again and again to get all round robin IP addresses from the DNS. In fact it's so common that I didn't even feel it worthy of mentioning. And lastly if you had read my first post, you'd have seen that I also mentioned something about keeping the TTL to a lowest possible value. So basically you're passing on redundant information to the list which all of us can do without.

Sanjay





-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help


Reply via email to