What will timeout value specified in /etc/resolv.conf do? What will timeout value specified in /etc/resolv.conf do? unix unix

What will timeout value specified in /etc/resolv.conf do?


Yes exactly. Timeout value is time to resolving IP address from hostname through DNS. server,timeout option is to reduce hostname lookup time

timeout:nsets the amount of time the resolver will wait for aresponse from a remote name server before retrying thequery via a different name server.  Measured inseconds, the default is RES_TIMEOUT (currently 5, see<resolv.h>).  The value for this option is silentlycapped to 30.

Refer http://man7.org/linux/man-pages/man5/resolver.5.html for more information