Problem with nsclient Connection reset by peer

Hello everyone!

I’m new to Icinga and I have several windows machines with NSClient, the problem is that some times the service cannot connect to the Icinga Server. On the Icinga web I see check_nrpe error connection reset by peer and if I take a look to the nsclient.log file it says
error:D:\source\nscp\modules\NSClientServer\NSClientServer.cpp:89: Failed to parse host icinga.domain.local: resolve: The requested name is valid but no data of the requested type was found
I set the log on debug mode in Nsclient so I can see something more, but found nothing.
nsclient.log (12.8 KB)

These are the same log, the first one is when the service works fine and the second is when it fails.
Here is the ini file
nsclient.txt (8.3 KB)
What I want is to know why this error happens sometimes and how I can avoid it.

Thank you.