Have you configured an NIS server/client ?

Answers were Sorted based on User's Feedback



Have you configured an NIS server/client ?..

Answer / satya

Con guring a master NIS server: Follow the following steps
to set up a server on the second
physical machine:
1. Set up the NIS domain name with the domainname command.
Use groupi.cs498hou.uiuc.edu
as the NIS domain name for the ith group.
1
domainname groupi.cs498hou.uiuc.edu
2. Determine what les you would like to share via NIS by
editing /var/yp/Make le. Search
for the following block of lines in the make le
GROUP = $(YPPWDDIR)/group
PASSWD = $(YPPWDDIR)/passwd
etc ...
This tells NIS where your database les are located (note
that $(YPPWDDIR) is set
to /etc at the top of the make le). You need to edit the
block of lines properly. Scroll
down the make le until the following block is reached:
all: passwd group hosts rpc services netid protocols mail \
# netgrp shadow publickey networks ethers bootparams printcap \
# amd.home auto.master auto.home auto.local passwd.adjunct \
# timezone locale netmasks
This line speci es which maps will be made available via
NIS. You need to edit this
block of lines in order to specify which les you would like
to distribute. The only les
you need to distribute for your network are ypservers,
passwd, group, hosts, rpc, services,
netid, and protocols.
3. Initialize the NIS database with
/usr/lib/yp/ypinit -m
Do not add any slave server, as our network is really small
and a master server is
sucient. (The hosts that you add are put to the le
/var/yp/ypservers.)
4. To start the NIS server automatically at boot time, use
the commands /sbin/chkcon g
--------------------------------------
Con guring an NIS client: As compared to con guring an NIS
server, NIS clients are much
easier to set up. You need to modify the following three les.
1. Edit the le /etc/yp.conf, e.g., for the rst group,
the le should be like
# /etc/yp.conf - ypbind configuration file
# Valid entries are
#
domain group1.cs498hou.uiuc.edu server m2.cs498hou.uiuc.edu

# Use server HOSTNAME for the domain NISDOMAIN.
#
#domain NISDOMAIN broadcast
# Use broadcast on the local net for domain NISDOMAIN
#
#ypserver HOSTNAME
# Use server HOSTNAME for the local domain. The
# IP-address of server must be listed in /etc/hosts.
#
2. Edit the /etc/syscon g/network le to set the NIS domain
name at boot time.
NISDOMAIN=group1.cs498hou.uiuc.edu
3. Edit the /etc/nsswitch.conf le. Search for the block of
lines
passwd: files nisplus nis
shadow: files nisplus nis
group: files nisplus nis
hosts: files nisplus nis dns
services: nisplus [NOTFOUND=return] files
etc...
The order placed in the le determines the search order used
by the system, e.g., the host-
names are rst searched for in the /etc/hosts les, then via
NIS in the map hosts.byname,
and nally by DNS via the DNS server speci ed in
/etc/resolv.conf.
4. Now all the les are in place, set up the client daemon
to automatically start at boot time
by creating a symbolic link from /etc/rc.d/rc.3/S60ypbind to
/etc/rc.d/init.d/ypbind.

Is This Answer Correct ?    3 Yes 0 No

Have you configured an NIS server/client ?..

Answer / ra

yes, i have configured an NIS server/client

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Networking Administration Interview Questions

Can you please explain the difference between hub and a switch?

0 Answers  


any one explain about frame and MAC address,packet and IP address,and segment and port address

2 Answers   IBM,


When do you use BGP, IGRP, OSPF, Static Routes?

11 Answers   Wipro,


What connectivity device works at the physical layer of the OSI model? a. repeater b. bridge c. router d. gateway e. brouter

1 Answers  


Which command will display the entire RAP table ?

1 Answers  






What characterizes a professional network administrator?

0 Answers  


How does a DNS server find the actual root servers ?

1 Answers  


What are the 2 functions of the Data Link Mac layer? * Handles access to shared media * Manages protocol access to the physical network medium * Provides SAPs for higher level protocols * Allows multiple devices to uniquely identify one another on the data link layer

8 Answers   Cisco, Facebook,


What are the different port role in STP and RSTP?

2 Answers   HCL,


Which IP-class provides the fewest numbers of Hosts? a. Class A b. Class B c. Class C d. Class D

1 Answers  


how can i install active directory in windows 2008

2 Answers   HCL, IntelNet,


What is the Multicast address used in STP ?

0 Answers   HCL,


Categories
  • Networking Protocols Interview Questions Networking Protocols (671)
  • Networking Administration Interview Questions Networking Administration (1008)
  • Networking Security Interview Questions Networking Security (196)
  • Networking General Interview Questions Networking General (266)
  • Networking AllOther Interview Questions Networking AllOther (430)