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.
上一篇:20 quick tips to make Linux networking easier (5/20) 下一篇:2020年2月20日签到记录贴 |