CHK*_*CHK 4 domain-name-system linux resolv.conf
文件的搜索部分server.com和之间有什么区别?server.com./etc/resolv.conf
user@host /etc/sysconfig/network-scripts $ head -n 3 /etc/resolv.conf
# Generated by NetworkManager
domain sub.company.com
search sub.company.com sub.company.com. company.com. company.com
Run Code Online (Sandbox Code Playgroud)
.是 DNS 层次结构中的最高点。com、org、net等都在 下.。您没有看到人们http://google.com.在他们的浏览器或其他应用程序中键入内容的原因是,随着时间的推移,应用程序已经开发出来,不需要它来“帮助”您。一个合适的 FQDN 在末尾仍然有一个句点,尽管现在在大多数情况下它并不重要。
当您有多个搜索后缀可以附加到 DNS 查询时,在末尾指定一个句点将阻止您的客户尝试通过附加附加后缀来“帮助”您。它基本上是在说“这是完整的完整地址。不要尝试附加任何其他内容。”
因为完全限定域名的末尾总是有一个句点。
Since a complete domain name ends with the root label, this leads to a
printed form which ends in a dot. We use this property to distinguish between:
- a character string which represents a complete domain name
(often called "absolute"). For example, "poneria.ISI.EDU."
- a character string that represents the starting labels of a
domain name which is incomplete, and should be completed by
local software using knowledge of the local domain (often
called "relative"). For example, "poneria" used in the
ISI.EDU domain.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4375 次 |
| 最近记录: |