From: ellis@nova.gmi.edu (Stew Ellis)
Subject: How do you run NIS or get DNS resolution w/o NIS on SYSVR4.0.3?
Summary: trouble getting DNS resolution or NIS from Sun server.
Keywords: NIS,DNS,rpc, SYSV386 R4.0.3, SunOS 4.1.2
Organization: GMI Engineering&Management Institute, Flint, MI
Date: Thu, 8 Oct 1992 13:30:02 GMT

I am running Intel SYSVR4.0.3 on a 16Mhz 386 with 8.5M of main memory, using
the Intel PCLink 2 intelligent network card with the drivers supplied by
Intel.  I have the complete set of Intel pre-release manuals in paper, but
no online mans.  I have just gotten serious about this because I have just
gotten a network connection in my office, and have preferred Xenix for
standalone systems.  After some initial problems caused by a bad memory chip
or bad motherboard, I have managed to get GCC and Jove running (previously
posted questions).  

In the area of networking, my success has been mixed.  I loaded the system
at home, took the system to my office, plugged in the power and network
connections, turned it on and could immediately telnet rlogin and ftp to the
other machines on our local network that were listed in hosts or that I
could remember the IP addresses for.  I could not immediately telnet or ftp
to machines out on the internet, even with the IP address, nor could I get
back to my machine, even by IP address, from out on the internet, until I
added a 'route add default xxx.xxx.xxx.xxx x' to the appropriate rc file.
Once I did the route add, then I could get nslookup to give me addresses,
and I could telnet, rlogin and ftp to any machine on the internet using IP
addresses.  Friends on the internet could reach my machine by name (after I
added the machine to the DNS tables on our Sun server/nameserver) or IP.

I would like to be able to do name resolution with telnet and ftp.  I have
added an /etc/resolv.conf file (without it nslookup would not work), but I
guess SYSVR4 handles DNS the same way SunOS does, depending on NIS to hand
off the requests to DNS.  I have the Sun server properly configured so that
all of the Sun workstations and the server can get name resolution by using
the combination of NIS and DNS ( yp tables made with the -b switch to
makedbm and ypserv started with -d (the man pages say to do this, but it is
controversial in the c.s.sun groups)).  When I say I, I mean I, so I can
change things on the Sun if I need to.  The Sun is running keyserv, but for
some reason the /var/yp/securenets file is empty.

I have tried to get NIS running on the 386 by going through the steps one at
a time.  When I get to the point of doing a ypwhich, it returns the correct
name of the Sun server, but without the domain name attached. (My /etc/hosts
on the 386 lists the server with its domain qualified name first, followed
by the short name.)  Ypcat requests return a no such map in domain error
message.  My next step was to edit the rc files to uncomment the sections
that say #uncomment for secure rpc, and restart the machine.  When I did a
ps I saw all of the rpc and yp processes that I can think of running.
Ypwhich returned the error "domain not set".  I ran it by hand, but where
should I put that in the startup files?  I can figure out SunOS rc files but
all of these SYSVR4 run levels drive me crazy.  Once I set the domainname,
ypcat still gives the no such map error.

I would really like to be able to get rpc and NIS running.  Am I the only
one having trouble ( or the only one trying this)?  What am I leaving out?

If it is going to be difficult/impossible to get DNS with NIS, what other
approach might I try?  Right now I am parsing the output of nslookup to be
able to ftp to named hosts(not pretty but it works), but I would like to
have things working.

Thanks in advance for any help.


--
--                                                        ___________________
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
Newsgroups: comp.unix.sys5.r4