Using the classic nsswitch.conf configuration:
hosts: files dns
Trying to resolve the name using gethostbyname (or getaddrinfo ) may take some time if DNS is not responding (or is poorly configured).
Is there a way to set the timeout in nsswitch.conf or use an alternative api that controls the timeout?
source share