From owner-freebsd-net Fri Aug 10 7:25:29 2001 Delivered-To: freebsd-net@freebsd.org Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by hub.freebsd.org (Postfix) with ESMTP id 76E9F37B40A for ; Fri, 10 Aug 2001 07:25:21 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.3/8.11.3) with ESMTP id f7AEPFO12479686; Fri, 10 Aug 2001 18:25:15 +0400 (MSD) Date: Fri, 10 Aug 2001 18:25:10 +0400 (MSD) From: Maxim Konovalov To: Peter Pentchev Cc: Subject: Re: getaddrinfo() returning AF_INET only? In-Reply-To: <20010810163757.B14158@ringworld.oblivion.bg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello, > Hi, > > Is there a configuration file or environment variable or some other > way to make getaddrinfo(3) not return AF_INET6 addresses even if > those are available? I know that most utilities that use I believe you are speaking about struct addrinfo hint.ai_family = PF_INET; > getaddrinfo(3) have an IPv4-only command-line option, but is there a > way to turn it on globally? resolver(3) mentions RES_OPTIONS > G'luck, > Peter HTH - -maxim -- Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer phone: +7 (095) 796-9079, mailto: maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message