Forum: Cfengine Help
Subject: Re: Unix_GetInterfaceInfo() too slow to read > 100 ip's on one 
interface, possible solution?
Author: mthibaut
Link to topic: https://cfengine.com/forum/read.php?3,17516,17576#msg-17576

One way to reduce the latency for name resolution is to run a nscd (name 
service caching daemon). Another is adding the host to /etc/hosts as was 
previously mentioned. 

We use a single source of truth (in our case, a DNS zone file which is 
generated from a database) to automatically create a hosts file 
/etc/hosts.auto, which we can then use to populate /etc/hosts. We put markers 
at the beginning and end of the automatically generated hosts.auto file so we 
can replace that part inside /etc/hosts if hosts.auto is newer than hosts.

If your machine doesn't need DNS at all (it's a firewall after all), you may 
consider removing dns from /etc/nsswitch.conf to remove any attempt to use a 
DNS server.

Not sure if this helps you, but you never know.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to