Hello,
I have following problem:
In order to run a special application without crashes - DNS lookups must
be disabled for that program as someone found out! The same good fellow
sent me a description for doing this under FreeBSD!
Does anyone know how what I have to do under LINUX (RedHat 6.2) in order
to get the same result???
I use Blackdown JAVA and IBM Java and I was told that the way must be
similar but that also /etc/nsswitch.conf hast to be modified!
Can anyone tell me what I have to do in a RedHat Linux 6.2 (Blackdown
Java/ IBM Java) environment????
Thank you very much for your help!!!
Volker
=================================
Here the description for FreeBSD:
Created patched libc.so to replace /etc/host.conf with /etc/hostJconf
without DNS lookups.
Inserted LD_LIBRARY_PATH in startup script to point on custom libc.so.
* found real binary Java executable
/usr/local/jdk1.1.8/bin/i386/green_threads/java
* ldd on it:
$ ldd /usr/local/jdk1.1.8/bin/i386/green_threads/java
/usr/local/jdk1.1.8/bin/i386/green_threads/java:
libjava.so => not found (0x0)
libxpg4.so.2 => /usr/lib/compat/libxpg4.so.2 (0x28064000)
libm.so.2 => /usr/lib/libm.so.2 (0x28068000)
libc.so.3 => /usr/lib/compat/libc.so.3 (0x28083000)
* DNS resolver in libc.so
* Java is linked against FreeBSD-3.x compatibility library
* here is JDK version:
$ /usr/local/jdk1.1.8/bin/java -fullversion
java full version "jdk1.1.8-FreeBSD:1999/11/9"
* DNS resolver configured in /etc/host.conf
* I need to disable DNS lookups for JDK/DigiChat only
* binary patching
$ mkdir /usr/local/Application/libc
$ cp /usr/lib/compat/libc.so.3 /usr/local/Application/libc
$ cd /usr/local/Application/libc
$ perl -pi.bak -e 's{/etc/host\.conf}{/etc/hostJconf}g;' libc.so.3
$ cd /etc
$ echo hosts > hostJconf
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 18 Jan 2001 - 21:10:37 CET