For Solaris systems you need to apply the following patch after applying the random ID and host length patches: From: gedetil@cs.umanitoba.ca (Gilbert E. Detillieux) Date: Wed, 23 Apr 1997 10:28:05 -0500 (CDT) BTW, the supplied patches worked fine for me under SunOS 4.x, but failed under Solaris 2.5. There were two separate problems there: the macro MAXHOSTNAMELEN wasn't defined (the code expects it to be in , but under Solaris, it's in the system-supplied , which bind doesn't use, since it comes with its own version of that file), and the Makefiles for the shared library directories weren't patched to know about the file res_random.o (and .c). The following patch, although probably not the cleanest fix, works for Solaris 2.5. *** res/res_comp.c.dist Mon Dec 2 03:17:22 1996 --- res/res_comp.c Tue Apr 22 15:01:51 1997 *************** *** 98,103 **** --- 98,109 ---- dn = exp_dn; cp = comp_dn; + + #ifndef MAXHOSTNAMELEN + #define MAXHOSTNAMELEN 256 + #endif + if (length > MAXHOSTNAMELEN-1) + length = MAXHOSTNAMELEN-1; eom = exp_dn + length; /* * fetch next label in domain name *** shres/solaris/Makefile.dist Sat Sep 21 19:13:33 1996 --- shres/solaris/Makefile Tue Apr 22 15:09:11 1997 *************** *** 22,27 **** --- 22,28 ---- res_comp.o res_init.o res_mkquery.o res_query.o res_send.o \ getnetbyaddr.o getnetbyname.o getnetent.o getnetnamadr.o \ gethnamaddr.o sethostent.o nsap_addr.o inet_pton.o inet_ntop.o \ + res_random.o \ inet_addr.o all: libresolv.so *************** *** 67,69 **** --- 68,71 ---- inet_addr.o: ../../res/inet_addr.c inet_ntop.o: ../../res/inet_ntop.c inet_pton.o: ../../res/inet_pton.c + res_random.o: ../../res/res_random.c Note that for other platforms where shared libraries are supported in bind, the Makefiles should likewise be fixed in the appropriate shres directories. -- Gilbert E. Detillieux E-mail: Dept. of Computer Science Web: http://www.cs.umanitoba.ca/~gedetil/ University of Manitoba Phone: (204)474-8161 Winnipeg, MB, CANADA R3T 2N2 Fax: (204)269-9178 "The earth is like a tiny grain of sand, only much, much heavier."