From: ellis@nova.gmi.edu (Stew Ellis)
Subject: Re: NIS and DNS. Any problem to expect?
Organization: GMI Engineering&Management Institute, Flint, MI
Date: Fri, 21 Aug 1992 20:33:21 GMT

dhuber@autelca.ascom.ch (Daniel Huber) writes:

>In a few weeks I have to move our communications server from a
>HP9000/835 HP-UX8.0 to a SPARCserver 4/490 with SunOS4.1.1 (eventually
>4.1.2).
>As I read the comp.sys.sun.* groups regurarly, I remember that there
>was once a problem running NIS server and DNS server concurrently on a
>sun. Setting up a sun DNS client is a cake (just 'make' in /var/yp
>with the -b switch activated in the Makefile, and creating
>/etc/resolv.conf). However, I believe I read once something about
>patching some binaries, if DNS and NIS should run together...
>Anybody knows more?

We got all sorts of conflicting advice, including replacing libc with a libc
relinked with all of the latest resolver routines from bind.  There have
been posts about the proper way to include resolver routines while relinking.
We just finally went back to stock, out of the box Sun stuff, with the -b
switch in /var/yp/Makefile and the additional switch -d for ypserv to get
additional host info from DNS.  We are doing this on our main mail and NFS
and NIS host.  We are running naked hostnames (machine name only, no domain
until after DNS takes over).  We still have not completely resolved whether
the difficulty a prof with an HP68040 is having is caused by this or his own
config.  He put latest HPUX on the same time as we reloaded out Sun server.
He can connect and mail alright, but telnet and ftp directly from his
machine to the outside do not work.

>I also move others from the HP to the Sun:

>- mailhub (sendmail configuration)

I had to engage in a couple of tweaks to sendmail.cf.  You have to run the
one for main hosts.  I had to jiggle around with $j and $m to get the 
domain to reflect properly in files that were going out.  We had the
additional problem of running Sun's DNI DECNET product and adding in a
bitnet routine.  We do not do UUCP right now which is a win.  One of the
biggest gotchas is Sun's practice of making the default /usr/lib/sendmail
not support MX records.  You have to move /usr/lib/sendmail to
/usr/lib/sendmail -nomx and ln /usr/lib/sendmail.mx to /usr/lib/sendmail
If you have trouble getting it to work, I can send you my sendmail.cf

>- NNTP
>- CNEWS (at the moment I'm running cnews27Aug91 on the HP. Are there
>  any advantages if upgrading to a newer version?)
>- NN (6.4.16)

I am running nn on the Sun, but using nntp from another university.


>Does anybody know if I have to expect problems?

>Thanks in advance

>Daniel

>-- 
>Daniel J. Huber, AIN1 / Ascom Autelca AG / CH-3073 Guemligen / Switzerland
>SMTP: dhuber@autelca.ascom.ch / Voice: +41 31 9996664 / Fax: +41 31 9996751 
>X.400: /G=Daniel/S=Huber/OU=Autelca/O=Ascom/P=EUnet/A=Arcom/C=ch/
>UNIX is the answer....what was the question?


Good luck.  Let me know if you have trouble with the stock Sun DNS NIS
interaction with the HP's as clients.  It is not clear whether you will
still have HP's.  We are considering adding a few HP 7x0's.  You have to be
careful and disable the excessively permissive NIS and NFS setups,
particularly /etc/hosts.equiv with a + line.

--
--                                                        ___________________
  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.sys.sun.admin