Article View: chile.comp.sun
Article #294Re: Como hago para ....
From: Francisco Inostroza M.
Date: Sun, 01 Sep 1996 00:00
Date: Sun, 01 Sep 1996 00:00
153 lines
5440 bytes
5440 bytes
root (obelmar@intermedia.cl) wrote:
:
:osea ... ke tengo ke hacer para que la cajita sun (Sun box .. una launch Box)
:resuelva nombres ????
:
La siguiente respuesta esta tomada del faq del grupo comp.sys.sun.admin
Creo que te puede ayudar bastante. Yo logre que una ipx resolviera
nombres, claro que yo no usaba ppp.
Suerte,
Pancho.-
-------- Begin Include -----------
Archive-name: comp-sys-sun-faq
Last-modified: 1995/4/27
Version: 1.9.13
Frequently Asked Questions for Comp.sys.sun.admin
Last update April 27 1995
1) How to get DNS working when not running NIS ?
Note: Solaris2.x users should see question 64..
The "normal" behavior of a hostname lookup under NIS is to
consult the NIS hosts map and then DNS (if configured). If
you are not running NIS the system will only look in
the /etc/hosts file.
You have two options to correct this situation:
A) Re-build the shared library version of libc with replacement
resolver routines which understand DNS. Resolv+ provides one
of the best sets of replacement routines and it is easy
to install. Resolv+ can be obtained from
thor.ece.uc.edu:/pub/sun-faq/Source/resolv+2.1.1.tar.Z
Rebuilding the shared library will not allow statically
linked binaries to do name resolving and these binaries
will only use /etc/hosts. "Dynamically linked"
replacements for mount and rcp are available from
thor.ece.uc.edu:/pub/sun-faq/Source/rcp-mount.dyn.tar.Z
This file only contains sun4 binaries. A Sun 3 binary
for mount can be retrieved from
thor.ece.uc.edu:/pub/sun-faq/Source/mount.sun3.Z
To be able to rebuild shared libraries you need to
install the "shlib custom" option which is available
with SunOS version 4.1 or greater.
If you want to do it under 4.0.3 you need to get the
patches available from ftp.uu.net (192.48.96.9) in the
/systems/sun/sun-fixes directory. You will need the following
files:
lib.msg, libc_pic.a.sun3 or libc_pic.a.sun4 and
libc_resolv.so.sun3 or libc_resolv.so.sun4
Make sure to get the README that cames with these files.
It is in the same directory.
You can still use NIS for other things in environment,
such as passwd, and group maps.
B) Run NIS with the "hosts" maps only. If you
only need DNS capability than change the "all"
line /var/yp/Makefile to "all: hosts".
It does not require any changes to shared libraries.
See question 2 for complete directions on how to setup
DNS with NIS.
Last Updated: January 30, 1995.
2) How to get DNS to be used when running NIS ?
First setup your /etc/resolv.conf file.
Use this file as a template.
;
; Data file for a client.
;
domain ece.uc.edu ; local domain
nameserver 129.137.8.118 ; primary domain nameserver
nameserver 129.137.32.101 ; secondary domain nameserver
Where: "local domain" is the domain part of the hostnames.
For example, if your hostname is "thor.ece.uc.edu"
your "local domain" is "ece.uc.edu" or you could use
"uc.edu".
Verify using nslookup that you are now resolving names
via DNS. Try something like "nslookup ftp.uu.net" and
see if you get back the IP address.
You will need to put a copy of this resolv.conf on
all NIS servers including slaves.
After you have the /etc/resolv.conf setup and working do
the following:
Under SunOS 4.1 and greater, change the "B=" at the top
of the /var/yp/Makefile to "B=-b" or if using 4.0.x, edit
/var/yp/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; \
Now setup NIS in the usual fashion (ypinit -m ) or if your "brave"
and have already setup NIS just re-make the hosts map. Something
like this should work remove /var/yp/hosts.time, cd /var/yp,
and type make (i.e. cd /var/yp; /bin/rm -f hosts.time ; make).
You will need reboot the machine or restart ypserv for these changes
to take affect.
The manpage for ypserv incorrectly states that you need to
start ypserv with the -d option to get DNS to work with NIS.
The manpage is incorrect -d option is for debugging.
If you need a copy of the NIS Makefile look in /usr/lib (NIS.Makefile).
Last Updated: January 30, 1995.
----------- End Include -------------
--
----------------------------------
Francisco Inostroza M.
F: (562)6957991 Fax: (562)6726523
finostro@srcei.cl
Santiago - CHILE
Technical Details
Message-ID:
<50cvf7$gn9@srcei.cl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<502gt9$754@back.intermedia.cl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe8e8,ebf71b8d6c201db0 X-Google-Attributes: gidfe8e8,public From: finostro@srcei.cl (Francisco Inostroza M.) Subject: Re: Como hago para .... Date: 1996/09/01 Message-ID: <50cvf7$gn9@srcei.cl> X-Deja-AN: 177868611 references: <502gt9$754@back.intermedia.cl> organization: Servicio de Registro Civil e Identificacion newsgroups: chile.comp.sun