November 16th, 2011, 12:51 AM
I used nslookup to fetch the ip address of one website, say google, but get different responses sometime (need to wait for sometime and resolve again). I thought it could be split dns feature but my ip wasn't changed when I tried to get the ip address. So what function/technology is it? Is this split dns or other feature?
Actually, this strange feature cause some issues on my program and I want to setup a similar function on my machine(ubuntu + bind9) to debug, but I don't know how to do it.
November 16th, 2011, 08:52 AM
It's a load balancing feature of the DNS server called round robin.
November 16th, 2011, 06:08 PM
Thank you for your reply, but it looks like different. Round robin gives same ip list but different orders. What I got from the server were totally different ip list.
Originally Posted by E-Oreo
November 16th, 2011, 07:10 PM
There is no reason a server can't return a different list when implementing round robin, especially for a company the size of Google where it would be utterly impractical for their reply to actually contain all of their server IPs.
November 16th, 2011, 08:10 PM
Agree what you said, but how to do that? I configured 6 ip address for one host name in Bind9, but the server response all of them.
Here is the configuration and result:
www IN A 172.16.0.93
www IN A 172.16.0.94
www IN A 172.16.0.95
www IN A 172.16.0.96
www IN A 172.16.0.97
www IN A 172.16.0.98
Name: ( address blocked: See forum rules)
Do you know any configuration or any dns software has the similar function as google (return part of ip addresses) which I could setup on my machine?
November 16th, 2011, 09:09 PM
Comparing BIND to Google is a bad idea in this case since they don't use BIND and don't seem to always follow rfc's. They use in house DNS software. It's not bad but you can't really compare it with most things out there. There might be some software you can use for that but nothing I can think of.
Standard DNS returns all of the resource records for a query of that type(should be somewhere in rfc 1035 or 34). By default, BIND will mix up the order it responds and most clients will just use the first one they see.
November 16th, 2011, 10:16 PM
I'm not actually sure how you would configure a server to do that, I just know that it's possible to do from a technical standpoint. (In general I try to avoid manually configuring name servers and mail servers.)
November 17th, 2011, 12:53 AM
Thanks for you guys. I have a clear understanding about this issue now. Maybe I need to write some scripts to simulate the behavior of google.