resolv.conf ottimizzato

/etc/resolv.conf, ottimizzato:

nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 4.2.2.2
option rotate
option timeout:1

option rotate – effettua le ricerche distribuendole in round robin tra i tre server elencati
option timeout:1 – timeout in secondi

Per maggiori dettagli leggi oltre.

man resolv.conf offre tutte le illustrazioni del caso, tra cui:

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>).

attempts:n

sets the number of times the resolver will send a query to its name servers before giving up and returning an error to the calling application. The default is RES_DFLRETRY (currently 2, see <resolv.h>).

rotate

sets RES_ROTATE in _res.options, which causes round robin selection of nameservers from among those listed. This has the effect of spreading the query load among all listed servers, rather than having all clients try the first listed server first every time.

no-check-names

sets RES_NOCHECKNAME in _res.options, which disables the modern BIND checking of incoming host names and mail names for invalid characters such as underscore (_), non-ASCII, or control characters.

(via Jeremy Zawodny)

One Reply to “resolv.conf ottimizzato”

Comments are closed.