System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

CDE haning problem after chaning nsswitch.conf files

sarfraz Khan_2
Occasional Advisor

CDE haning problem after chaning nsswitch.conf files

Hi there,

i have facing problem with x manager when i am chaning entry hosts: files [NOTFOUND=continue] dns in nsswitch.conf file CDE hanged and not starting session. it accepts username and password but after that nothing is happing.

pls help
Thanks in Advance
sarfraz khan
5 REPLIES
Steven Schweda
Honored Contributor

Re: CDE haning problem after chaning nsswitch.conf files

Change it back to what it was?

CDE may have problems when a system can't
resolve its own name.
sarfraz Khan_2
Occasional Advisor

Re: CDE haning problem after chaning nsswitch.conf files

Thanks steven,

but if i revert back entry in nsswitch.conf files then system will not able to resolve internet address. in that condition my mail server will also not able to send mails.recently we have configured bugzilla on server which sends mail to developer's mail id.
sarfraz khan
Steven Schweda
Honored Contributor

Re: CDE haning problem after chaning nsswitch.conf files

What are we talking about here?

uname -a

> but if i revert back [...]

What was it before? And after you change it,
does DNS work properly?

What are you using as a DNS server? (What's
in "/etc/resolv.conf"?)

You may be working too hard. Around here,
for example:

dy # cat /etc/nsswitch.conf
cat: Cannot open /etc/nsswitch.conf: No such file or directory

dy # cat /etc/resolv.conf
domain antinode.info
nameserver 10.0.0.9

And I have no trouble with DNS look-ups:

dy # nslookup forums.itrc.hp.com
Name Server: alp-l.antinode.info
Address: 10.0.0.9

Trying DNS
Non-authoritative answer:
Name: forums.itrc.hp.com
Address: 15.216.52.63



What are you using as a DNS server? (What's
in "/etc/resolv.conf"?) Is your workstation
(?) in your DNS data?

You may be working too hard. Around here:

dy # cat /etc/nsswitch.conf
cat: Cannot open /etc/nsswitch.conf: No such file or directory

dy # cat /etc/resolv.conf
domain antinode.info
nameserver 10.0.0.9

And I have no trouble with DNS look-ups:

dy # nslookup forums.itrc.hp.com
Name Server: alp-l.antinode.info
Address: 10.0.0.9

Trying DNS
Non-authoritative answer:
Name: forums.itrc.hp.com
Address: 15.216.52.63

And my system can find itself:

dy # nslookup ` hostname `
Name Server: alp-l.antinode.info
Address: 10.0.0.9

Trying DNS
Name: dy.antinode.info
Address: 10.0.0.39


dy # nslookup
Default Name Server: alp-l.antinode.info
Address: 10.0.0.9

> policy
#Lookups = 3
dns [RCCC] nis [RCCC] files [RRRR]


That looks to me a lot like what's in
"/etc/nsswitch.hp_defaults", so I'd guess
that that's what happens when
"/etc/nsswitch.conf" is missing (as it is
here).

What was your original problem, before you
started "fixing" things?


dy # uname -a
HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license
sarfraz Khan_2
Occasional Advisor

Re: CDE haning problem after chaning nsswitch.conf files

thnaks steven,


problem has been resolved, after chagning below lines
hosts: files [ NOTFOUND=continue ] dns.
sarfraz khan
sarfraz Khan_2
Occasional Advisor

Re: CDE haning problem after chaning nsswitch.conf files

prblem resolve after put below line in nsswitch.conf files.
files [ NOTFOUND=continue ] dns
sarfraz khan