<div dir="ltr"><div>[ Classification Level: <font color="blue">GENERAL BUSINESS</font> ]</div><br>Only thing that comes to mind is a constantly-running dynamic update script that adds/deletes records to/from the RRset at random.<div><br></div><div>A more sophisticated version of the script would look at what answers that have been given out in the recent past, and if some addresses were given out more than others (because of the randomness), "tilt" the answer set back more towards equal representation.</div><div><br></div><div><div>                                                                                                            - Kevin<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 20, 2020 at 3:15 AM David Klatt <<a href="mailto:d.klatt@sonnen.de">d.klatt@sonnen.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I can't find a way to do the following although I invested plenty of time<br>
in research - maybe you guys have an idea:<br>
<br>
With bind, I'd need to serve a single A record with  30+  IP addresses  and<br>
these addresses have to be returned in random order round robin,<br>
which is done with:<br>
<br>
    rrset-order {  order random;  };<br>
<br>
and records like:<br>
<br>
    foo  IN A  10.0.0.1<br>
    foo  IN A  10.0.0.2<br>
    foo  IN A  10.......N<br>
<br>
Now I'd like bind to just return a  random subset  of e.g. 5 IP addresses<br>
if someone requests this A record.<br>
<br>
Reason for this are in my case some (thousands) older clients (that I can't control)<br>
that seem not being able to handle that many IPs - the OS resolver just returns an error.<br>
<br>
For my use case I absolutely need to make sure that each IP of that large<br>
A record set is given out equally (statistically) and that at any time when<br>
bind answers that one A record it only returns a random subset of all these IPs.<br>
<br>
Has someone an idea on how to achieve the latter?<br>
<br>
Thanks a lot in advance!<br>
<br>
David<br>
Geschäftsführer: Christoph Ostermann (CEO), Oliver Koch, Steffen Schneider, Hermann Schweizer, Tim Ulbricht.<br>
Amtsgericht Kempten/Allgäu, Registernummer: 10655, Steuernummer 127/137/50792, USt.-IdNr. DE272208908<br>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div></div></div></div>