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

Abh*_*988 5 linux ubuntu google-compute-engine ubuntu-17.04

我在 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)

出了什么问题?

Mic*_*ton 5

您放置的那些过时的选项/etc/host.conf都不再起作用。并且谷歌会防止你的IP被欺骗;你不必担心。