20 quick tips to make Linux networking easier (6/20)

Toolong 发表于 2020-2-19 15:22:44 | 显示全部楼层 |阅读模式
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)


QQ|Archiver|手机版|小黑屋|个人研发笔记 京ICP备18037383号-1

GMT+8, 2022-9-25 16:40

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表