[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 03457) Re: getnameinfo() gets DNS non-recoverable error Solaris 2.8+
- To: "'Vlad Yasevich'" <vladislav.yasevich@xxxxxx>
- Subject: (usagi-users 03457) Re: getnameinfo() gets DNS non-recoverable error Solaris 2.8+
- From: "mclellan, dave" <mclellan_dave@xxxxxxx>
- Date: Wed, 27 Jul 2005 11:35:41 -0400
- Cc: "'users@xxxxxxxx'" <users@xxxxxxxx>, "'Usagi-Users (usagi-users@xxxxxxxxxxxxxx)'" <usagi-users@xxxxxxxxxxxxxx>
- Reply-to: usagi-users@xxxxxxxxxxxxxx
Hi Vlad. your statement is correct, we are using ipnodes and not DNS,
although the translation of the EAI_FAIL error (gai_strerror) is exactly as
shown, hinting at DNS. I'll try nsswitch.conf idea.
Thanks.
Dave
BTW: my apologies to all who subscribe to *both* users@xxxxxxxx and
usagi-users. you're getting two copies of these messages.
-----Original Message-----
From: Vlad Yasevich [mailto:vladislav.yasevich@xxxxxx]
Sent: Wednesday, July 27, 2005 10:48 AM
To: mclellan, dave
Cc: 'users@xxxxxxxx'; 'Usagi-Users (usagi-users@xxxxxxxxxxxxxx)'
Subject: Re: getnameinfo() gets DNS non-recoverable error Solaris 2.8+
Dave
mclellan, dave wrote:
> Hi all: DUMB QUESTION ALERT:
>
> if I call getnameinfo() with a sockaddr_in6 that describes a link-local
> address on Solaris 2.8+, it returns EAI_FAIL (DNS non-recoverable error).
> The address is configured I the /etc/net/ipnodes file correctly, I think.
> that is, I can find the address given the name, but can't find the name
> given the address.
From that description, it sounds like you aren't really using DNS, but a
local ipnodes file. So, to me it sounds like a bug.
>
> 1) is this because it doesn't like link-local, and should I skip the
> getnameinfo() if I know it's a link-local (translate the address by
> inet_ntop for example).
>
> OR
>
> 2) should this work, and how might I best debug the DNS query to figure
why
> the configuration is wrong.
See if this works when you remove the DNS lookups from the lookup order
in nsswitch.conf or whatever solaris uses. If by using just local
lookups you can't resolve a link-local address, then it may be a bug
(or Solaris feature... :)
-vlad
>
> Thanks for any hint.
>
>
>
> Dave McLellan --Consulting Software Engineer - SPEA Engineering
> EMC Corporation
> 228 South St. Mail Stop: 228 LL/AA-24
> Hopkinton, MA 01748 USA
> +1-508-249-1257 F: +1-508-497-8030 mclellan_dave@xxxxxxx
>
> ---------------------------------------------------------------------
> The IPv6 Users Mailing List
> Unsubscribe by sending "unsubscribe users" to majordomo@xxxxxxxx
>