I have a server running RedHat Enterprise Linux ES 3.3 and I'm having some problems.
Whenever I try to do a whois from the server, or ping anything outside the server itself, I can't do it.
With whois, if I type in
[whois.internic.net: Servname not supported for ai_socktype]
[Unable to connect to remote host]
I might expect bind to be the problem, but it is running and I don't have a problem connecting to sites via lynx or something like that.
But things like whois, ping and dig all refuse to work
I checked /etc/resolv.conf and it is set to two valid, currently working nameservers.
Just on the off chance, I tried changing it to another pair of nameservers that I know work and the problem doesn't go away.
Is this a problem with getaddrinfo() or bind itself?