whois failing

I also had a case with the same symptoms a while back, it was trying to go over ipv6 which wasn't configured correctly.

That is what mine ended up being. I don't know how many months later I figured it out. I had to put this in /etc/modprobe.conf

options ipv6 disable=1
alias ipv6 off
 
You want to take that a step further and disable it system wide:

CentOS 5.x... add to /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1

CentOS 6.x... add to /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

If you are running ip6tables then you'll want to disable it:

service ip6tables stop
chkconfig ip6tables off

...then reboot
 
All I have done to disable ipv6, is only to disable it in named. I have edited /etc/sysconfig/named and added OPTIONS="-4" at the bottom of the file, and then restarted named. Maybe I should do more, like you describe, but I have never had any problems on my servers after only doing the one change.
 
I was also having a problem with netstat. It showed ipv6 style addresses like ::ffff: The change to mod_probe.conf fixed that too.
 
whois fail solution

i have the same problem with whois

the root cause of my case is my Host can not connect to IPV6, once i fix my ipv6 connection , my jwhois works fine .
 
Back
Top