I have posted the next question.
Thanks to all who replied to me. Since I use NIS, the best choice
was editing Makefile. It worked well. bye!
> Dear all-sunmanagers,
> I want to know how to install name-server.
> I uses nslookup or dig for name resolve. But it is
> Where Can I get information about it?
> Any help will be appreciated.
> _ , _ __ _ ,
> ' ) / ' ) / / ) ' ) /
> /-< / / / /--/ /-< email@example.com
> / ) (_(_/ / (_ / ) firstname.lastname@example.org
>From email@example.com Wed Jun 23 07:41:04 1993
Received: from orac.biostat.washington.edu ([184.108.40.206]) by snoopy.postech.ac.kr (4.1/SMI-4.1)
id AA29431; Wed, 23 Jun 93 07:40:49 KDT
Received: by orac.biostat.washington.edu
(5.64/UW-NDC Revision: 2.21 ) id AA14666; Tue, 22 Jun 93 15:39:39 -0700
From: David Fetrow <firstname.lastname@example.org>
Subject: Re: How could I install Name-Server??
Date: Tue, 22 Jun 93 15:39:39 PDT
In-Reply-To: <9306220621.AA19520@snoopy.postech.ac.kr>; from "Kwak Jong-Geun" at Jun 22, 93 4:21 pm
X-Mailer: ELM [version 2.3 PL11]
If you are running NIS all you need to do is:
set up your /etc/resolv.conf files (which you have already done or dig
Look at the Makefile for yellow pages (yp, NIS). Make sure it has the line:
..which will turn on domain service through NIS.
-- -dave fetrow- INTERNET: email@example.com FAX: 206-543-3286 BITNET: fetrow@uwalocke
>From firstname.lastname@example.org Wed Jun 23 01:53:56 1993 Return-Path: <email@example.com> Received: from portal.hq.videocart.com ([220.127.116.11]) by snoopy.postech.ac.kr (4.1/SMI-4.1) id AA26250; Wed, 23 Jun 93 01:52:55 KDT Received: from vcrt.hq.videocart.com by portal.hq.videocart.com with smtp (Smail18.104.22.168 #2) id m0o8BZ7-0009MXC; Tue, 22 Jun 93 11:51 CDT Received: by vcrt.hq.videocart.com (/\==/\ Smail22.214.171.124 #25.21) id <m0o8BZ4-000we2C@vcrt.hq.videocart.com>; Tue, 22 Jun 93 11:51 CDT Message-Id: <m0o8BZ4-000we2C@vcrt.hq.videocart.com> From: firstname.lastname@example.org (Mike Andrews) Subject: Re: How could I install Name-Server?? To: email@example.com Date: Tue, 22 Jun 93 11:51:22 CDT In-Reply-To: <9306220621.AA19520@snoopy.postech.ac.kr>; from "Kwak Jong-Geun" at Jun 22, 93 4:21 pm X-Mailer: ELM [version 2.3 PL11] Status: OR
Sun-Managers' Frequently Asked Questions $Id: faq,v 3.13 1993/04/28 23:44:14 jdd Exp $
6) How do I set up NIS/YP to use DNS? 7) How do I use DNS instead of NIS for hostname resolution?
6) How do I set up NIS/YP to use DNS?
Under SunOS 4.1.x, there is a "#B=" at the top of /var/yp/Makefile, uncomment and change this to "B=-b" and setup NIS in the usual fashion. Under 4.0.x, edit the Makefile or apply the following "diff":
*** Makefile.orig Wed Jan 10 13:22:11 1990 --- Makefile Wed Jan 10 13:22:01 1990 *************** *** 63 **** ! | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byname; \ --- 63 ---- ! | $(MAKEDBM) -b - $(YPDBDIR)/$(DOM)/hosts.byname; \ *************** *** 66 **** ! | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/hosts.byaddr; \ --- 66 ---- ! | $(MAKEDBM) -b - $(YPDBDIR)/$(DOM)/hosts.byaddr; \
7) How do I use DNS instead of NIS for hostname resolution?
The "normal" behavior of a hostname lookup under NIS is to consult the NIS hosts map and then DNS (if configured). You can change this so all hostname lookups go directly to DNS. The SunOS shared library mechanism allows you change the behavior of any command that is dynamically linked to the shared library. In SunOS 4.1 and greater releases, there is an optional package called "shlib custom" that contains a kit for rebuilding shared libraries. You can select this in suninstall or load it later. It will put the files in /usr/lib/shlib.etc. Note that machines that come with pre-installed SunOS don't include this. It contains both a "normal" and System V version of libc and some tools to build shared libraries. The Sun-supplied README file gives some help, but doesn't detail how to change the hostname lookup functions. The complete procedure for this is spelled out in "bindon41.shar", which is available for anonymous ftp from "ra.mcs.anl.gov" in "/pub" - it goes one step further and replaces the Sun resolver routines with BIND 4.8.3 versions. Note that you can still use NIS for other things in environment, such as passwd, group info, etc - the NIS hosts map is just ignored. There are several important statically linked binaries that will break if you replace the Sun routines. "/etc/mount" is probably where you will first notice that it doesn't know about any host that is not present in /etc/hosts. The same goes for "rcp". My solution was to recompile mount and rcp with the new resolver routines, but you need source code to do this. Sun apparently will give you a dynamically-linked version of mount if you have software maintenance. You can compile your own version of rcp from the Berkeley 4.3 source that is available on various ftp site. Otherwise, you might just have to have all hosts (and aliases) in /etc/hosts that you want to mount or use Internet addresses (yuck). Another "feature" of a DNS-only environment is that hostnames will sometimes be returned all in uppercase and these will not match the lower-case entries you typically have in /etc/exports, /etc/bootparams, etc. There are some patches to BIND 4.8.3 called "resolv+" that allow you to specify hostname lookups to /etc/hosts only, DNS only or both.
bind 4.8.3 is on ucbarpa.berkeley.edu (126.96.36.199) in /4.3 resolv+ is on schizo.samsung.com (188.8.131.52) in /pub/usenet-archives/alt.sources/283.Z
Mike Andrews |VideOcart, Inc. firstname.lastname@example.org |Chicago, IL USA =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-= Think you've got problems? How many SHOPPING CARTS are on YOUR WAN?
>From email@example.com Tue Jun 22 19:02:37 1993 Return-Path: <firstname.lastname@example.org> Received: from alkestis.mpim-bonn.mpg.de ([184.108.40.206]) by snoopy.postech.ac.kr (4.1/SMI-4.1) id AA21321; Tue, 22 Jun 93 19:01:40 KDT Received: from fama.mpim-bonn (fama.mpim-bonn.mpg.de) by alkestis.mpim-bonn.mpg.de (4.1/2.0) id AA00111; Tue, 22 Jun 93 11:04:36 +0200 Date: Tue, 22 Jun 93 11:04:36 +0200 From: email@example.com (Sven Maurmann) Message-Id: <9306220904.AA00111@alkestis.mpim-bonn.mpg.de> To: firstname.lastname@example.org Subject: Re: How could I install Name-Server?? X-Sun-Charset: US-ASCII Status: OR
There is a very good book about DND and BIND. Its title is DNS and BIND, by Paul Albitz and Cricket Liu O'Reilly & Associates ISBN 1-56592-010-4
Sven Maurmann (Systems administrator at Max-Planck-Institute for Mathematics, Bonn -- Germany)
>From rhee@vision Wed Jun 23 16:11:51 1993 Return-Path: <rhee@vision> Received: from vision.postech.ac.kr by snoopy.postech.ac.kr (4.1/SMI-4.1) id AA04863; Wed, 23 Jun 93 16:11:50 KDT Received: by vision.postech.ac.kr (4.1/SMI-4.1) id AA07088; Wed, 23 Jun 93 16:06:20 KDT Date: Wed, 23 Jun 93 16:06:20 KDT From: rhee@vision (Snow-Flower) Message-Id: <9306230606.AA07088@vision.postech.ac.kr> To: kwak@snoopy Subject: Re: Help me.. How can I install named daemon? Status: OR
Well ... Actually I did'nt setup dns on Vision system. But I can tell you about it, try next following.
1. Create /etc/resolv.conf which contains the following two lines;
domain postech.ac.kr nameserver 220.127.116.11
2. Find either /var/yp/Makefile and edit it or /usr/etc/yp and install yp
#B=-b B= ======> change to B=-b #B=
3. Then do the following; mv /etc/hosts /etc/hosts.tmp touch /etc/hosts cd /var/yp make hosts.time mv /etc/hosts.tmp /etc/hosts
P.S ; I have'nt tested this way I think you need to have a trial and error. One very important thing is ypserv must be running for everything to work.
Good luck and when you succeded it please let me know and procedure too. I need to have for next time too.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:58 CDT