Applies to:
Centrify DirectControl 5.1.3 on Fedora Core 20 platform only
Question:
adcheck reports the below error even though /etc/nsswitch.conf has dns for hosts line.
Snippet of adcheck:
NSHOSTS : Check hosts line in /etc/nsswitch.conf : Failed
: adcheck needs dns to resolve hosts
: Please add dns to the hosts line in /etc/nsswitch.conf .
cat /etc/nsswitch.conf |grep hosts
#hosts: db files nisplus nis dns
hosts: files dns
The DNS server listed in /etc/resolv.conf is alive and is the right server. It also knows about this FC 20 server. Is there any reason for this?
Answer:
adcheck invokes a script which greps (searches) for the below string.
WORDS=`grep "^\s*hosts" $FILE
When the grep command is run manually, it returns nothing.
This error can be ignored for now. Centrify will investigate further on the OS side of things and will provide resolution.