From: ellis@nova.gmi.edu (Stew Ellis)
Subject: Re: Need Info about setting up Domain Name services (named) on network
Organization: GMI Engineering&Management Institute, Flint, MI
Distribution: usa
Date: Mon, 7 Sep 1992 19:18:03 GMT

pgrine@nic.cerf.net (Robert Young) writes:

>Hi there!

>Well, it is time for our network to migrate to Domain Name services.
>Here is a summary of my situation:

>We were using our standard Internet Address for our token-ring lan and 
>the default 192.9.200 for our ethernet lan.

>So far no problem but.... because we are incorporating to the INTERNET
>we will be making changes to our addresses.
>What i have done so far is test the subnet issue.
>We have defined our choices there: we will be using the 3 highest bits
>(netmask 224) and do with 6 subnets.

>Here comes the question>

>Has anyone implemented this setup with NIS with DNS (named).
>The docs say that NIS can run with domain name services on top of it
>I am reading chapter 17 of the SUN : System & Network Administration in
>order to understand what is going on but I must confess that I am still
>not sure how to go about it.
>Based on the samples I have created the boot files for my 3 servers
>but like i said, is not complete.

>Can any one share some hints, 
>I have a combination of token-ring and ethernet unix hosts and PC's.
>I want to use subnets for security reasons (the machine that will connect 
>us to the internet via a router will be in one subnet along with the
>router).

>Ideally, I would like to use NIS to handle local addresses and DNS when 
>needing info about INTERNET addresses.
>My HUB supplier (Cerfnet) has already given me the name of the domain name
>server that I should use to link to the INTERNET.

>Thanks in advance, in the menatime I will keep on reading.

>Robert Young
>Peregrine Systems, Inc.
>robert@peregrine.com
>pgrine@nic.cerf.net
>(619) 431-2400, Ext 167

Once you have the DNS tables set up and are running in.named from
/etc/rc.local, and have NIS running, you have three additional changes to
make from the default Sun setup.  

1) In /var/yp/Makefile, remove the comment
from the line that reads:
#B=-b
and add one to the line that read:
B=
This tells the makedbm program to make the NIS databases in such a way to
cooperate with DNS.

2) In /etc/rc.local, set the -d switch for ypserv, again to get the NIS
stuff to interact with DNS.

3) Create an /etc/resolv.conf on the NIS/DNS server with the following info:
domain your.domain
nameserver ip-number_of_your_primary_nameserver
nameserver ip-number_of_your_secondary_nameserver

When you run /var/yp/Makefile, watch to make sure the hosts databases are
remade.  If they are not, then touch /etc/hosts and remake.

You also will have to reboot (fastboot) I believe to get the ypserv switch
to take effect, although I guess you could kill the pid of ypserv and
restart it with the -d.

Use /usr/etc/nslookup to check name resolution of your local and some remote
hosts.

I hope this helps.  This is what I am doing at GMI, but we are a nearly
homogeneous network, with a Sun server doing both DNS and NIS, and about 25
workstations being served.  We have one HP and a couple of DEC workstations,
but I am not sure they are getting completely satisfactory DNS.  The PC's,
running Netware, with CUTCP for TCP/IP, are getting IP addresses with bootp
from the Sun server.


--
--                                                        ___________________
  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.protocols.tcp-ip.domains