comp-sys-sun-faq Question 1)에 그 것을 하는 방법이 나옵니다.
-------------------
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 cames with
detailed instructions. Also, it will take of fixing the
many problems with the normal Sun shared library rebuild.
Finally, resolv+ can be obtained from thor.ece.uc.edu.
Get the file /pub/sun-faq/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. You can get "dynamically linked"
replacements for these via anonymous ftp to
thor.ece.uc.edu(129.137.8.118) and get the file
/pub/sun-faq/rcp-mount.dynamic.tar.Z.
This file only contains sun4 binaries.
To be able to rebuild shared libraries you need to
install the "shlib custom" option which is avaiable
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.
Note: 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 directoins on how to setup
DNS with NIS.
-----------