Joining to AD Domain: *******
With Computer DNS Name: (null)
Error: Required configuration stage not enabled [code 0x0000a606]
The configuration of module 'set computer hostname' is required. Please either allow this configuration stage to be performed automatically (by passing '--enable hostname'), or
manually perform these configuration steps and rerun the domain join:
The following step(s) are required:
Give the machine a fully-qualified domain name. If performed automatically, the fqdn will be set through /etc/hosts to 'proj.users.campus', but it is possible to use a
different fqdn and/or set it through dns instead of /etc/hosts. However in all cases, the fqdn must follow standard DNS naming conventions, and have a period in the name.
The following steps will be used if the fqdn is set automatically:
* Make sure local comes before bind in nsswitch
* Add a loopback entry in /etc/hosts and put the fqdn as the primary name
我认为我已经解决了第二个错误。但我不明白第一个错误。
什么是确保 nsswitch 中的 local 位于 bind 之前意思是?
答案1
确保 nsswitch 中的本地位于绑定之前是什么意思?
在 /etc/nsswitch.conf 中,在 dns 之前的“host: ..”文件中。例如:
Correct
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
Not correct
hosts: dns files
答案2
我认为这意味着在 /etc/nsswitch.conf 文件中,控制 DNS 源的行应该指示名称查找在任何其他命名源(如 bind)之前从本地文件进行
所以你应该有这样的一行
hosts: files dns mdns4_minimal
而不是这个
hosts: dns files mdns4_minimal