Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 35403 invoked from network); 20 Feb 2004 19:56:01 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Feb 2004 19:56:01 -0000 Received: (qmail 94205 invoked by uid 500); 20 Feb 2004 19:55:49 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 94166 invoked by uid 500); 20 Feb 2004 19:55:49 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 94149 invoked from network); 20 Feb 2004 19:55:48 -0000 Message-ID: <40366515.9060307@remulak.net> Date: Fri, 20 Feb 2004 14:50:45 -0500 From: "Paul J. Reder" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@apr.apache.org Subject: Re: getaddrinfo() on HP-UX 11i References: <16A24B6050584143978000646801E93557BED8@cacexc03.americas.cpqcorp.net> In-Reply-To: <16A24B6050584143978000646801E93557BED8@cacexc03.americas.cpqcorp.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Madhu, Is this dependant on the version of 11i? I've seen comments that lead me to believe there is no support available for IPv6 in 11i v1.0 (11.11), that there is IPv6 support available for 11i v1.5 (11.20) and v1.6 (11.22) (via TOUR v1.0 I believe), and that IPv6 ships as part of 11i v2.0 (11.23). Am I confused? Or were you responding specifically to information that Jeff gave about the version he was working with? Thanks, Paul J. Reder Mathihalli, Madhusudan wrote: >>-----Original Message----- >>From: Jeff Trawick [mailto:trawick@attglobal.net] > > [SNIP] > > >>I don't have /etc/nsswitch.conf at all. >> >>If I create /etc/nsswitch.conf with "ipnodes: >>dns[NOTFOUND=continue] files" as >>the only line, it doesn't change anything; I can still find >>names in /etc/hosts >> and still can't find names not in /etc/hosts. > > > > Well, here's some more info. - let me know if it helps: > > getaddrinfo() API does not come in the base HPUX 11i. It comes as part > of IPv6 patch for 11i. So if base HPUX 11i is present, then threre is no > question of functionality broken as getaddrinfo is itself not available. > Compilation itself fails here. If IPv6 patch is installed, then > getaddrinfo() works fine as acknowledged in the FAQ. > > getaddrinfo support for libc was added as part of IPv6 patch in HPUX 11i. > But the situation may arise that libc patch with getaddrinfo support is > installed but other IPv6 related patches are not installed. In this case > both the libnss_dns patch and libnss_files patch with getaddrinfo support > should be installed. Otherwise getaddrinfo may appear to be broken. This > is because libc uses libnss_dns and libnss_files for name resolution using > dns and files respectively. > > libc patch with IPv6 support - PHCO_24400 > libc headerfile patch with IPv6 support - PHCO_24402 > libnss_files patch with IPv6 support - PHCO_24401 > libnss_dns patch with IPv6 support - PHNE_24129 > All these patches or their superseding patches should be installed for > getaddrinfo to work on 11i. > > The most common error that users make is not specifying properly the > ipnodes directives in /etc/nsswitch.conf and assuming that giving the > hosts directive should also work for getaddrinfo. > > -Madhu > -- Paul J. Reder ----------------------------------------------------------- "The strength of the Constitution lies entirely in the determination of each citizen to defend it. Only if every single citizen feels duty bound to do his share in this defense are the constitutional rights secure." -- Albert Einstein