Forum: CFEngine Help Subject: Re: Do a single DNS lookup Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,23813,23814#msg-23814
Hm... I personally think that relying on DNS magic to do what you want is bound to produce more problems than necessary and be much more fragile in the long term. I would imagine that this has more to do with how the OS resolver works, but I'm not sure. Off-the-top-of-my-head suggestion: If you are already configuring DNS differently in each location, why don't you configure it to return just the local server? They wouldn't need to contact remote servers anyway, right? In any case, any complexity in having the policy decide which server to contact (based on IP address, host names, or whatever you want) could be encapsulated in a bundle that then assigns the correct server to a global variable, which then gets used everywhere. Would this work? _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine