jensen%bessel@gatech.edu (P. Allen Jensen) (06/15/89)
Can someone tell me how to get yp to use a name server when a host cannot be found in the host database ? The Sun documentation seems to indicate that this is possible. I have set up a valid /etc/resolv.conf file and sendmail.mx works fine as does nslookup, however, when I try ftp/rlogin/telnet to a host that is not in the yp database but is available from the name server (verified using nslookup) I get "host unknown" I even tried the -i option on ypserv (a rumored option to enable resolver routines) but no luck. Can anyone provide me with pointers to documentation I may have overlooked or (preferably) information on what I need to do that I have not done. domain eedsp.gatech.edu nameserver 128.61.1.251 nameserver 128.61.1.1 Thanks for any assistance. P. Allen Jensen Georgia Tech, School of Electrical Engineering, Atlanta, GA 30332 USENET: ...!{allegra,hplabs,ihnp4,ulysses}!gatech!eedsp!jensen INTERNET: jensen%eedsp@gatech.edu
jgarb@csd360b.erim.org (Joe Garbarino) (06/17/89)
Hello. If you are running SunOS 3.x, ypserv -i is indeed the solution (it worked for me). If you are running SunOS 4.0, you need to install SunOS 4.0.1, since a bug in ypserv prevented the code from working. After installing 4.0.1, you need to go into the Makefile for yp (/var/yp) and add a -b to the makedbm for the hosts yp map (also, drop the -i from ypserv), the remake your hosts yp map (or all the maps, if you're lazy like me). Look at the makedbm documentation for more information. Joe Garbarino ERIM P.O. Box 8618 Ann Arbor, Mi. 48107 (313)994-1200 x2508 jgarb@csd360b.erim.org
jensen@bessel.berkeley.edu (P. Allen Jensen) (06/20/89)
Thanks for the replies - the software on uunet.uu.net (anonymous FTP) in sun-fixes corrected the problems. P. Allen Jensen Georgia Tech, School of Electrical Engineering, Atlanta, GA 30332 USENET: ...!{allegra,hplabs,ihnp4,ulysses}!gatech!eedsp!jensen INTERNET: jensen%eedsp@gatech.edu
zjat02@uunet.uu.net (Jon A. Tankersley) (06/24/89)
You didn't mention the OS release. ypserv -i is for 3.5 and 386i machines. You use makedbm -b in the /var/yp/Makefile for hosts to get yp to query the nameserver. Works fairly well. Some hosts ask for bogus host names (-.domain.edu) and the 4.0 documentation refers to the 4.1 named stuff, but it kinda works. (watch out for resolution by named down to the last to domain parts. bogus.domain.edu can resolve sucessfully for yp because domain.edu is valid and can be 'matched'. Also, telnet/rlogin/ftp to bogus.domain.edu will hang forever (well, I finally killed it after 30 minutes on rlogin and telnet :-)). I've bitched about this one, but it may be related to the above resolution. nslookup and yp w/o named both come back quickly with an error of no such host. Dunno. I've heard that some major changes are coming for named/yp before 4.1. Some of these should be fixed in that release/patch. -tank- #include <std/disclaimer.h> /* nobody knows the trouble I .... */ tank@apctrc.trc.amoco.com ..!uunet!apctrc!tank