From owner-freebsd-stable Thu Aug 29 0:54: 2 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B702A37B400 for ; Thu, 29 Aug 2002 00:53:58 -0700 (PDT) Received: from sixshooter.v6.thrupoint.net (sixshooter.v6.thrupoint.net [65.242.152.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BEB943E6A for ; Thu, 29 Aug 2002 00:53:58 -0700 (PDT) (envelope-from jpb@sixshooter.v6.thrupoint.net) Received: by sixshooter.v6.thrupoint.net (Postfix, from userid 1000) id 435F5107A3; Thu, 29 Aug 2002 03:53:57 -0400 (EDT) Date: Thu, 29 Aug 2002 03:53:57 -0400 From: Jim Brown To: freebsd-stable@FreeBSD.ORG Subject: Re: Sendmail dnsbl does IPv6 lookup Message-ID: <20020829075357.GB79052@sixshooter.v6.thrupoint.net> Mail-Followup-To: freebsd-stable@FreeBSD.ORG References: <002601c24ece$0bb9a320$6501a8c0@bob> <20020828220628.C57868-100000@mail.unixguru.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020828220628.C57868-100000@mail.unixguru.nl> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Richard [2002-08-28 16:19]: > Hello, > > Don't know if this is a Sendmail or a FreeBSD problem, but lets try over > here first. > > In my $hostname.mc I have the following: > > define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl > FEATURE(delay_checks)dnl > FEATURE(`enhdnsbl', `bl.spamcop.net', `"Spam blocked see: http://spamcop.net/bl.shtml?"$&{client_addr}', `t')dnl > FEATURE(`dnsbl', `blackholes.wirehub.net', `"550 5.7.1 ACCESS DENIED to <"$&f"> thru "$&{client_name}" (http://doema.wirehub.nl/error/errors.html)"', `')dnl > FEATURE(`enhdnsbl', `dynablock.wirehub.net', `"550 5.7.1 ACCESS DENIED to <"$&f"> thru "$&{client_name}" (http://doema.wirehub.nl/error/errors.html)"', `t', `127.0.0.2.')dnl > > When an email arrives at my mail server there are 3 DNS connections made, > to lookup the address that started the SMTP session. > > 28-Aug-2002 22:03:20.036 XX+/127.0.0.1/xxx.xxx.xxx.xxx.bl.spamcop.net/A/IN > 28-Aug-2002 22:03:20.208 XX+/127.0.0.1/xxx.xxx.xxx.xxx.blackholes.wirehub.net/AAAA/IN > 28-Aug-2002 22:03:20.210 XX+/127.0.0.1/xxx.xxx.xxx.xxx.dynablock.wirehub.net/A/IN > > As you can see the lookup made for xxx.xxx.xxx.xxx.blackholes.wirehub.net > is aan IPv6 lookup and that should be an IPv4 lookup. Is this a bug, > or did I something wrong? > > Is there a way to force an IPv4 lookup?? > > Greetings, > > Richard. There are several options in /etc/rc.conf (look in /etc/defaults/rc.conf) that control IPV6 behavior (assuming here you do not want or need any IPv6 connectivity.) Try the following: ### IPv6 options: ### ipv6_enable="NO" # Set to YES to set up for IPv6. ipv6_network_interfaces="none" # List of network interfaces (or "auto"). ipv6_defaultrouter="NO" # Set to IPv6 default gateway (or NO). ipv6_static_routes="" # Set to static route list (or leave empty). Also, remove ::1 localhost from /etc/hosts and make sure there are no v6 addresses in /etc/resolv.conf. If you are running your own nameserver, explicitly disable IPv6 processing. See the BIND Admin Ref. Manaul. Nose around on www.kame.net There may be a few hints there. It's probably something in the resolver code. All I can think of... BR, jpb === To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message