Operating System - HP-UX
1834640 Members
3342 Online
110069 Solutions
New Discussion

Re: nis - unknown hostname

 
steven Burgess_2
Honored Contributor

nis - unknown hostname

Hi all

I have just added a couple of users to one of our nis domains

however, when I log into one of the servers I get the message

unknown

I can lookup and reverse lookup the host ok
The nis master can ping and resolve the host
the entry in /etc/rc.config.d/netconf for the host is ok
the client is configured in namesvrs file ok

I am using dns to resolv hostnames. Other servers in the environments are configured in the same way and do not have an issue

Any ideas

Steve
take your time and think things through
10 REPLIES 10
A. Clay Stephenson
Acclaimed Contributor

Re: nis - unknown hostname

You mentioned NIS but this appears to be DNS. A possible answer is that you failed to increase the serial value when you added the hosts so that dns did not remap the data. I would also check that your /etc/nsswitch.conf configuration is identical to that of known working hosts - that is most likely your problem.
If it ain't broke, I can fix that.
Uday_S_Ankolekar
Honored Contributor

Re: nis - unknown hostname

Does 'ypwitch' resolve NIS server on these new clients?

-USA..
Good Luck..
S.K. Chan
Honored Contributor

Re: nis - unknown hostname

A few q's just to clarify ..
a- The problem stays with just that couple of users or all users ?
b- The server showing this error, is it a client,slave or master ?
c- Is the user home directory local or NFS mounted. If NFS mounted are you using automounter ?
d- The nsswitch.conf and hosts file in /etc , have you check them ?
Michael Steele_2
Honored Contributor

Re: nis - unknown hostname

Did you remake the /etc/hosts map?

ypmatch hostname hosts (* from master server *)

cd /var/yp
/usr/ccs/bin/make hosts (* to remake hosts map on master server *)
ypxfr hosts

To trace an unknown NIS host:

nsquery hosts hostname

To check your NIS master from the client:

ypwhich -m hosts
Support Fatherhood - Stop Family Law
steven Burgess_2
Honored Contributor

Re: nis - unknown hostname

Hi A.Clay

I had checked nsswitch.conf for variations, a working server is the same

hosts: files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns [
NOTFOUND=return UNAVAIL=return TRYAGAIN=return]

I will check DNS

Steve

take your time and think things through
Michael Steele_2
Honored Contributor

Re: nis - unknown hostname

Typo, should read:

To check if listed in hosts map?

ypmatch hostname hosts (* from master server *)
Support Fatherhood - Stop Family Law
steven Burgess_2
Honored Contributor

Re: nis - unknown hostname

Hi all

Thanks for the replies

I will have to go through your responses in the morning

We have a backup network for our servers.

ypwhich uses the hostname of the backup servers for the clients that don't have a problem

For the server that has an issue it uses the prod hostname

Would this cause an issue

For me it's

'Welcome to NIS , have a nice day - happy learning'

Thanks again

Steve
take your time and think things through
V. Nyga
Honored Contributor

Re: nis - unknown hostname

Hi Steve,

maybe your problem is similar to mine:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x329719434a69d711abdc0090277a778c,00.html

If you have one master server you maybe need to rebuild the slave servers like S.K. Chan told me.

Welcome to NIS ;-))
Volkmar
*** Say 'Thanks' with Kudos ***
A. Clay Stephenson
Acclaimed Contributor

Re: nis - unknown hostname

One other thought - examine your /etc/resolv.conf file asnd compare it to the working boxes; also do a netstat -r and compare to a working box - you just might be missing something as simple as a default route.
If it ain't broke, I can fix that.
steven Burgess_2
Honored Contributor

Re: nis - unknown hostname

Hi all

After checking the NIS environment, other id's I found a script fired from /etc/profile runs a user front end on particular hosts, i had to add the id's to an exclude list to prevent the running of the script as this particular host wasn't setup for the gui.

Thanks again

Steve
take your time and think things through