我遇到了 init.d 脚本问题(服务无法启动),所以我想知道是否有可用的日志以便我可以解决问题。
是否可以为不同的用户设置不同的 DNS 服务器?
比方说用户test1使用谷歌的DNS(8.8.8.8和8.8.8.8),test2会使用0.0.0.0,都test3和test4会使用127.0.0.1。
这可能吗?
我的/etc/hosts文件看起来像这样:
# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
# /etc/cloud/cloud.cfg or cloud-config from user-data
127.0.1.1 ansible-server ansible-server
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix …Run Code Online (Sandbox Code Playgroud)