小编Abh*_*988的帖子

错误:/etc/host.conf 文件中的错误命令“?nospoof on”

我在 GCP 中使用 Ubuntu 17.10 VM。为了防止我的服务器的 IP 被欺骗,我在我的 /etc/host.conf 文件中做了以下更改:

更改自:

# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on
Run Code Online (Sandbox Code Playgroud)

# The "order" line is only used by old versions of the C library.
?order bind,hosts
?nospoof on
Run Code Online (Sandbox Code Playgroud)

但这给出了以下错误:

/etc/host.conf: line 2: bad command `?order bind,hosts'
/etc/host.conf: line 3: bad command `?nospoof on'
Run Code Online (Sandbox Code Playgroud)

出了什么问题?

linux ubuntu google-compute-engine ubuntu-17.04

5
推荐指数
1
解决办法
2万
查看次数