我在 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)
出了什么问题?