What timeout value is specified in the / etc / resolv.conf file?

For example, resolv.conf in / etc / looks like this: -

search example.com 
nameserver 172.16.1.254
nameserver 172.16.2.254
options timeout:3
options attempts:2

Here a timeout of 3 means 3 seconds. But what is the meaning of the timeout value? Is it time to connect to the DNS server? OR Is this the time allowing the DNS server to return the IP address value for the URL?

+4
source share
1 answer

Yes, for sure, the timeout value is the time for resolving the IP address from the host name through the DNS server, the timeout parameter is to reduce the time for finding the host name

timeout:n
sets the amount of time the resolver will wait for a
response from a remote name server before retrying the
query via a different name server.  Measured in
seconds, the default is RES_TIMEOUT (currently 5, see
<resolv.h>).  The value for this option is silently
capped to 30.

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

+6

Source: https://habr.com/ru/post/1524437/


All Articles