PDA

View Full Version : hosts: files dns missing from /etc/nsswitch.conf



simonpalmer123
24-Jul-2012, 17:17
Hi, hope someone can explain why this could have happened before I spend any more time...
I've built SLES11SP2 xen hosts from autoyast (autoyast is just from the "clone" at the end of the install)
the entry:
hosts: files dns
appears to have gone missing from /etc/nsswitch.conf on the machines built from the autoyast.
The line is there on the machine the autoyast was taken.

Could a patch have removed the line?
I guess it "should" be there?

Cheers,
Simon

enovaklbank
25-Jul-2012, 13:04
Yes, it should probably be there.
Do you have the same version of the RPM glibc installed on the original and the "clone" machine?

What does rpm -qV glibc say - is the package untouched or modified?

simonpalmer123
26-Jul-2012, 12:22
Without the hosts entry in nsswitch, it can sometimes do hosts resolution (including localhost), and sometimes can't.
rpm -qv glibc
glibc-2.11.3-17.39.1
Thanks,

enovaklbank
27-Jul-2012, 08:10
rpm -qV glibc

simonpalmer123
27-Jul-2012, 09:06
Sorry, that gives no output on either the host built by autoyast or the original host.

enovaklbank
27-Jul-2012, 12:56
Strange, as the RPM package contains the /etc/nsswitch.conf file in it's original form - with the "hosts: files dns" line in it.
If the -qV (verify) option does not show any difference compared to the rpm database, then the file is untouched after installation and should contain the line.

As the rpm does not have any pre/postinstall scripts, some other package or autoyast function changes the file.

Did you have a look at the autoyast.xml? I checked one quickly, but found no entries which could interfere with nsswitch.conf settings...