20 quick tips to make Linux networking easier (6/20)
已有 1202 次阅读2020-2-19 15:08
|系统分类:Linux
6: Hard-code your DNS server addresses
I don’t know how many times I have had networking problems that pointed directly at missing DNS server
addresses. To this end, I have made it a habit to hard-code my DNS servers into the /etc/resolv.conf file. The
format of the entries is:
nameserver IP_ADDRESS
where IP_ADDRESS is the actual address of your name server. You can have as many name servers listed as
you need.