Operating System - HP-UX
1836546 Members
2300 Online
110102 Solutions
New Discussion

How does the host fined the master

 
hpuxrox
Respected Contributor

How does the host fined the master

I guess my question is how does the cleint find the master server in the first place.
I dont see anything in namesrvs, just domainname. but the domainname doesnt have the IP address of the first master server.
5 REPLIES 5
Jeff Schussele
Honored Contributor

Re: How does the host fined the master

Hi Yates,

The client broadcasts & the first respondent is bound to.

This info is then stored in /var/yp/bindings

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
hpuxrox
Respected Contributor

Re: How does the host fined the master

Thanks You answered my question
pap
Respected Contributor

Re: How does the host fined the master

HI,
One more thing,

if you do ypwhich , it will tel you to which machine your client is bind to.
This will be automatically taken if a slave server is existing on your subnet.

As far as master server is concerned, and if you are not using any slave servers on your subnet , then the entry in /etc/rc.config.d/namesvrs (on client machine)with variables normally NIS MAster server will decide about the master server.

YPBIND_OPTIONS
YPSER_ADDR

The client will directly contacts master server for all NIS related tables information.

-pap
"Winners don't do different things , they do things differently"
Bill Earley
New Member

Re: How does the host fined the master

ypcat -m hosts (or any mapname)
Bill Earley
New Member

Re: How does the host fined the master

Oops! I mean:
ypwhich -m hosts (any map will do)