From owner-freebsd-questions@FreeBSD.ORG Tue Jun 10 16:03:49 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A939567 for ; Tue, 10 Jun 2014 16:03:49 +0000 (UTC) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) by mx1.freebsd.org (Postfix) with ESMTP id C81E025AB for ; Tue, 10 Jun 2014 16:03:48 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout07 with smtp id Cg3k1o004516WCc01g3l7y; Tue, 10 Jun 2014 17:03:45 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=O4C3vXNW c=1 sm=1 tr=0 a=lfSX4pPLp9EkufIcToJk/A==:117 a=lfSX4pPLp9EkufIcToJk/A==:17 a=D7rCoLxHAAAA:8 a=0Bzu9jTXAAAA:8 a=NmrU6LgK5G8A:10 a=GIOUmoa10HgA:10 a=BuGW46s8gpoA:10 a=ZTb9aqGL9YkA:10 a=8nJEP1OIZ-IA:10 a=snx3ZdrDAAAA:8 a=mV9VRH-2AAAA:8 a=9Yq2uQApozZYRNdFgJgA:9 a=wPNLvfGTeEIA:10 a=2M__6h2ttvsA:10 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.82) (envelope-from ) id 1WuOWU-0003IZ-6w for freebsd-questions@freebsd.org; Tue, 10 Jun 2014 17:03:44 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Tue, 10 Jun 2014 17:03:40 +0100 Message-ID: <1698839.1jfALbmXgr@curlew.lan> User-Agent: KMail/4.12.5 (FreeBSD/9.1-RELEASE-p14; KDE/4.12.5; amd64; ; ) In-Reply-To: <20140610131333.1afcf0a4@gumby.homeunix.com> References: <3249346.Xk4hV27COm@curlew.lan> <20140610131333.1afcf0a4@gumby.homeunix.com> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk Subject: Re: sa-update fails - no DNS for updates.spamassassin.org Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="iso-8859-1" X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); Unknown failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2014 16:03:49 -0000 On Tuesday 10 June 2014 13:13:33 RW wrote: > The two DNS lookups that failed aren't supposed to work anyway. If > the problem persists try this: > > > $ host -t txt mirrors.updates.spamassassin.org > mirrors.updates.spamassassin.org descriptive text > "http://spamassassin.apache.org/updates/MIRRORED.BY" > > $ host -t txt 0.4.3.updates.spamassassin.org > 0.4.3.updates.spamassassin.org is an alias for > 2.3.3.updates.spamassassin.org. 2.3.3.updates.spamassassin.org > descriptive text "1588424" The host commands give the same results for me too but sa-update fails. It seems to be happening in this section of code (lines 539 to 547): if (!defined $newV) { my @mirs = do_dns_query("mirrors.$channel"); if (defined shift @mirs) { dbg("channel: no updates available, skipping channel"); } else { channel_failed("channel: no 'mirrors.$channel' record found"); } next; } At this point $newV is defined but is an empty string so do_dns_query is invoked to lookup the TXT record for mirrors.updates.spamassassin.org which returns an empty arrayand results in channel_failed("channel: no 'mirrors.$channel' record found"). -- Mike Clarke