Re: Disable IPv6 lookup on HP-UX 11.31 (1484 Views)
Reply
Super Advisor
Mousa55
Posts: 663
Registered: ‎05-20-2007
Message 1 of 10 (1,513 Views)

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

Super Advisor
Mousa55
Posts: 663
Registered: ‎05-20-2007
Message 2 of 10 (1,502 Views)

Re: Disable IPv6 lookup on HP-UX 11.31

Hi Team,

 

Is there any update ??

 

Thanks

Valued Contributor
Naj
Posts: 169
Registered: ‎06-16-2011
Message 3 of 10 (1,498 Views)

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!
Super Advisor
Mousa55
Posts: 663
Registered: ‎05-20-2007
Message 4 of 10 (1,496 Views)

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
Valued Contributor
Naj
Posts: 169
Registered: ‎06-16-2011
Message 5 of 10 (1,494 Views)

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!
Super Advisor
Mousa55
Posts: 663
Registered: ‎05-20-2007
Message 6 of 10 (1,489 Views)

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
Valued Contributor
Naj
Posts: 169
Registered: ‎06-16-2011
Message 7 of 10 (1,484 Views)

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!
Super Advisor
Mousa55
Posts: 663
Registered: ‎05-20-2007
Message 8 of 10 (1,477 Views)

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
Valued Contributor
Naj
Posts: 169
Registered: ‎06-16-2011
Message 9 of 10 (1,473 Views)

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!
Super Advisor
Mousa55
Posts: 663
Registered: ‎05-20-2007
Message 10 of 10 (1,470 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.