Maintained by: NLnet Labs

[Unbound-users] Unbound and Round Robin DNS

Paul Wouters
Fri Aug 21 15:53:51 CEST 2009

On Fri, 21 Aug 2009, Gareth Hopkins wrote:

> I am in the process of testing unbound and have found the following with round robin dns entries.
> Using as an example, unbound gives me the same answer ( everytime whereas bind
> gives me the intended different answers. Example below.
> Command used was while true; do date; nslookup| head -n6 ; sleep 1; done

dig against unbound gives me :

;; ANSWER SECTION:		266	IN	A		266	IN	A		266	IN	A		266	IN	A		266	IN	A		266	IN	A

Seems like they use a TTL of 300. Asking unbound with nslookup gives all 6
records, but I guess unbound is not cycling them in any way, so you keep
getting the first record. Perhaps Wouter can explain that part, as I am
sure some conscious design decision has gone into that.

But in 300 seconds, things will change. For me, the list got returned
the second time as:

;; ANSWER SECTION:		300	IN	A		300	IN	A		300	IN	A		300	IN	A		300	IN	A		300	IN	A

So to my applications (eg ping) their address changed from