SUMMARY: cant gethostbyaddr Error

From: Rasana Atreya (Rasana.Atreya@library.ucsf.edu)
Date: Mon Jul 22 1996 - 13:35:44 CDT


Hi!

I tried to set up NIS+ but when it did not work, I backed it out. But I still
kept getting the following in my /var/adm/messages file:
Jul 13 04:09:42 helena nnrpd[9561]: ? cant gethostbyaddr 128.218.27.20 Error
0

I checked /etc/nsswitch.conf. It had reverted to nis (which works fine). But
for sone reason we still kept getting this error. So I just changed to hosts
line in this file to hosts: file dns

This cleared up the problem, though I'm still not sure why. Because NIS does
work on other machines...

I tried sys_unconfig either, but it did not help.

Thanks a lot to the following people for their hints:
vnarayan@haverford.edu (Vasantha Narayanan)
"Miguel Marques" <miguel@YorkU.CA>
Rahul Roy <roy@bluestone.com>
Justin Young <justiny@cluster.engr.subr.edu>

And a related problem was that:
# /etc/init.d/rpc stop
Missing ]
Miguel Marques suggested I do this in bourne shell.

Please see complete responses below.

Thanks,
Rasana
---------------------------------------------------------------------------
From: vnarayan@haverford.edu (Vasantha Narayanan)

It looks like a hostname resolution problem. Check the /etc/nsswitch.conf
file to see what you have done about dns.

---------------------------------------------------------------------------
From: "Miguel Marques" <miguel@YorkU.CA>

This is the file appropriate for when you are running nis.
You probably want /etc/nsswitch.files which sets it up to use files.
Also if you are using DNS add dns to the hosts: line in that file.

> # /etc/init.d/rpc stop {did not work, says Missing ] }
Try

sh /etc/init.d/rpc stop

> # rm -f /etc/.rootkey
> # rm -rf /var/nis/*
> # /etc/init.d/rpc start {did not work, says Missing ] }
>
Same.

---------------------------------------------------------------------------
From: Rahul Roy <roy@bluestone.com>

Did you try to run the "sys-unconfig" utility at all ?? It allows you to
back out of NIS+...

You should never back out of NIS+ by editing files - always bound to
miss out files which leaves the system in an unstable state.
Try this :
vi /etc/nsswitch.conf
and see the hosts section....should be no reference to nis *at all*...if
there is nis/nisplus there - remove it !!!
---------------------------------------------------------------------------
From: Justin Young <justiny@cluster.engr.subr.edu>

You don't have DNS enabled. You probably need to check your
/etc/nsswitch.conf and make sure you have an entry which says

hosts files dns

or something like that rather than hosts files

or if you're running braindead NIS

hosts nis dns or whatever

NIS+

hosts nisplus dns
---------------------------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Rasana Atreya Voice: (415) 476-3623 ~
~ Programmer/Analyst and Red Sage Administrator Fax: (415) 476-4653 ~
~ Library & Ctr for Knowledge Mgnt, Univ. of California at San Francisco ~
~ 530 Parnassus Ave, Box 0840, San Francisco, CA 94143-0840 ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:05 CDT