Sorry for this off topic question and please do point me to a more appropriate list if you know one.<div><br></div><div>I was trying to understand the source of some unusual traffic from one of our hosts... It was running some python script that needed to constantly resolve two names ... turns out nscd was not liking those two names and not caching them!</div>
<div><br></div><div>After many tests, we are thinking that nscd does not cache a name that returns more than one IP address! Could that be true? Is that expected and known behavior of nscd?</div><div><br></div><div>I noticed what follows:</div>
<div><br></div><div>- For an entry corresponding to a single A record, the log shows it added two entries for: GETHOSTBYNAMEv6 and GETHOSTBYNAME</div><div>"getent hosts" commands result in the latter entry being used.</div>
<div><br></div><div>- For an entry corresponding to a multi A record, the log shows it added just one entry, the one fore GETHOSTBYNAMEv6 </div><div>"getent hosts" commands result in a "have not found hosts entry" log and DNS queries being made.</div>
<div><br></div><div>Thanks a lot,</div><div>Mohamed.</div>