![什么是 HostnameLookups?其目标是什么?](https://linux22.com/image/540427/%E4%BB%80%E4%B9%88%E6%98%AF%20HostnameLookups%EF%BC%9F%E5%85%B6%E7%9B%AE%E6%A0%87%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F.png)
我想知道主机名查找在 apache 配置文件 (httpd.conf) 中。我还对这个指令的目标感兴趣。
谢谢亚历山德罗
答案1
http://httpd.apache.org/docs/2.2/mod/core.html#hostnamelookups
手册上写道:
This directive enables DNS lookups so that host names can be logged
(and passed to CGIs/SSIs in REMOTE_HOST). The value Double refers to
doing double-reverse DNS lookup. That is, after a reverse lookup is
performed, a forward lookup is then performed on that result. At
least one of the IP addresses in the forward lookup must match the
original address. (In "tcpwrappers" terminology this is called PARANOID.)