Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2014 17:03:40 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: sa-update fails - no DNS for updates.spamassassin.org
Message-ID:  <1698839.1jfALbmXgr@curlew.lan>
In-Reply-To: <20140610131333.1afcf0a4@gumby.homeunix.com>
References:  <3249346.Xk4hV27COm@curlew.lan> <20140610131333.1afcf0a4@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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