Linux DNS client resolver slow to resolve domain name

Linux DNS client resolves the problem of slow domain:

DNS under Linux system configuration file is /etc/resolv.conf

cat /etc/resolv.conf

# Generated by NetworkManager

options single-request-reopen

nameserver 114.114.114.114

cat /etc/resolv.conf

options timeout:1 attempts:1 rotate

nameserver 114.114.114.114

nameserver 8.8.8.8

nameserver 1.1.1.1

rotate: The meaning of the parameters is randomly selected as a query dns server, the default is the order from top to bottom.

timeout: query a nameserver timeout, in seconds. The system default is 5, the maximum can be set to 30. 1S can be set to time out, or else such as AAAA to respond to the end of time, a waste of time.

attempts: this is the number of queries across all try it again, the default will be issued LINUX several DNS query packet, so check once a waste of time.

Guess you like

Origin www.linuxidc.com/Linux/2019-10/161097.htm