Operating System - HP-UX
1748145 Members
3644 Online
108758 Solutions
New Discussion юеВ

Re: Disable IPv6 lookup on HP-UX 11.31

 
Mousa55
Super Advisor

Disable IPv6 lookup on HP-UX 11.31

Hi,

 

because i facing slowness when i run the java application on my system 11.31, and The problem is that the JVMтДв does both an IPv6 and an IPv4 query.

So, I want to know if there is a way to tell the lookup process NOT to check for IPv6 addresses or tell it to prefer IPv4 addresses ? i want to configured to check from /etc/hosts first and then go to DNS with ignore the IP v6 lookup.

 

i configure the /etc/resolv.conf as below


domain1 mydomain
nameserver IP1
nameserver IP2
nameserver IP3

and the /etc/nsswitch.conf file

passwd: files
group: files
hosts: files dns
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

 

Thanks

9 REPLIES 9
Mousa55
Super Advisor

Re: Disable IPv6 lookup on HP-UX 11.31

Hi Team,

 

Is there any update ??

 

Thanks

Naj
Valued Contributor

Re: Disable IPv6 lookup on HP-UX 11.31

Hello,

 

You may done this by modify/adding [NOTFOUND=return] in /etc/nsswitch.conf

 

i.e

ipnodes:files [NOTFOUND=return]

 

Thanks

 

BR

Naj

 


____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Mousa55
Super Advisor

Re: Disable IPv6 lookup on HP-UX 11.31

Hi,

only on "hosts"
hosts: files [NOTFOUND=return] dns

or also on "ipnodes"

ipnodes: files [NOTFOUND=return]

Thanks
Naj
Valued Contributor

Re: Disable IPv6 lookup on HP-UX 11.31

Hello

 

only on ipnodes

 

i.e

ipnodes:files [NOTFOUND=return]

 

Thanks

 

BR

Naj

 

 

 

 

 


____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Mousa55
Super Advisor

Re: Disable IPv6 lookup on HP-UX 11.31

Hi,

Thanks for your support but i need if there is a way to tell the lookup process on dns NOT to check for IPv6 addresses or tell it to prefer IPv4 addresses.

Thanks
Naj
Valued Contributor

Re: Disable IPv6 lookup on HP-UX 11.31

Hello,

Are you sure, slowness issue caused by Java request traffic?
Why not try to check in Java conf file if there have any setting to update.
Since i do not sure what kind of java application that you are running, so i just assume the conf.

Thanks

BR
Naj

____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Mousa55
Super Advisor

Re: Disable IPv6 lookup on HP-UX 11.31

Hi,

Are you sure, slowness issue caused by Java request traffic ?

The java application is AIX510/520 with JDK 1.4. and please look to this link to take more information about this problem.

http://www-01.ibm.com/support/docview.wss?uid=swg21174765&wv=1

Thanks
Naj
Valued Contributor

Re: Disable IPv6 lookup on HP-UX 11.31

Hi,

Based on the link given it was on AIX machine and i have no idea it's related to HPUX or not.
I have some question here

1, what version of JDK that are you using now?
2. Did you try to disabled ipv6 and see how it's working through ipv4?

Thanks

BR
Naj


____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Mousa55
Super Advisor

Re: Disable IPv6 lookup on HP-UX 11.31

Hi,

my system is HP-UX 11.31 but the WAS and application itтАЩs IBM.

1, what version of JDK that are you using now?
Jdk15 1.5.0.19.00 Java 1.5 JDK
Jdk60 1.6.0.06.00 Java 6.0 JDK

2. Did you try to disabled ipv6 and see how it's working through ipv4?
if you mean disable ipv6 from application side, the application admin he donтАЩt know any way for that.

but if you mean from unix side i trying that by adding this ipnodes: files [NOTFOUND=return] on /etc/nsswitch.conf

Thanks