Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 2002 03:53:57 -0400
From:      Jim Brown <jpb@sixshooter.v6.thrupoint.net>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Sendmail dnsbl does IPv6 lookup
Message-ID:  <20020829075357.GB79052@sixshooter.v6.thrupoint.net>
In-Reply-To: <20020828220628.C57868-100000@mail.unixguru.nl>
References:  <002601c24ece$0bb9a320$6501a8c0@bob> <20020828220628.C57868-100000@mail.unixguru.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
* Richard <richard@unixguru.nl> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020829075357.GB79052>