[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] name resolution problem
- Subject: [ale] name resolution problem
- From: esoteric at 3times25.net (Geoffrey)
- Date: Fri, 10 Feb 2006 20:34:06 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
Jim wrote:
> I'm working on a POS FC4 system that seems to have a strange problem.
> I'm calling getaddrinfo to obtain the IP address of a fqdn host. It is
> giving me the error "Name or service not known". This function has been
> working on others systems, but not this one. nslookup and host work
> fine, so I'm at a loss as to where to look for the problem. The host
> is on the same subnet and ping and ssh find it with no trouble. It's
> just getaddrinfo can't find it. I tried it with both PF_UNSPEC and
> PF_INET, but neither worked.
>
> hints.ai_family = PF_UNSPEC;
> hints.ai_family = PF_INET;
> hints.ai_socktype = SOCK_STREAM;
> hints.ai_flags = AI_NUMERICHOST;
>
> Anyone know what facility getaddrinfo uses that might be different from
> host or nslookup?
Just a thought, from the man page:
EAI_SERVICE The requested service is not available for the requested
socket type. It may be available through another socket type
--
Until later, Geoffrey