Forum: CFEngine Help Subject: Re: Do a single DNS lookup Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23813,23820#msg-23820
simonblake Wrote: ------------------------------------------------------- > Is there even any concept of "first"? AFAIK, most > servers given out the first address in response to > the first query (from any client), second address > to the second query, loop adnauseum. Yes. You can configure BIND to either return multiple addresses in arbitrary order, implementing round-robin DNS load balancing - or to return them in a fixed order. When I run host against this name, it returns the same value each time. :) Basically, I do not have control over the network or the DNS infrastructure, and it's unlikely that either will change to accomodate my application. The best I can currently come up with is to do a system call to host and pop the last field of the first line off. But that seems like a horrible idea. :D _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine