You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2007/06/14 17:17:38 UTC

Re: sa-update, can't resolve "localhost" to address

A guess-- you have

    server localhost

in /etc/resolv.conf.

--j.

Helmut Schneider writes:
> Hi,
> 
> [root@ns1 ~]# uname -rs
> OpenBSD 4.0
> [root@ns1 ~]#
> 
> When I run sa-update I get the error below:
> 
> [root@ns1 ~]# sa-update  --nogpg
> can't resolve "localhost" to address at
> /usr/local/libdata/perl5/site_perl/i386-openbsd/Net/DNS/Resolver/Base.pm
> line 751.
> [root@ns1 ~]#
> 
> Could anyone please tell me what's wrong?
> 
> [root@ns1 ~]# sa-update -V
> sa-update version svn454083
>   running on Perl version 5.8.8
> [root@ns1 ~]# spamassassin -V
> SpamAssassin version 3.1.7
>   running on Perl version 5.8.8
> [root@ns1 ~]#
> 
> [root@ns1 ~]# sa-update  --nogpg -D
> [28203] dbg: logger: adding facilities: all
> [28203] dbg: logger: logging level is DBG
> [28203] dbg: generic: SpamAssassin version 3.1.7
> [28203] dbg: config: score set 0 chosen.
> [28203] dbg: message: ---- MIME PARSER START ----
> [28203] dbg: message: main message type: text/plain
> [28203] dbg: message: parsing normal part
> [28203] dbg: message: added part, type: text/plain
> [28203] dbg: message: ---- MIME PARSER END ----
> [28203] dbg: dns: is Net::DNS::Resolver available? yes
> [28203] dbg: dns: Net::DNS version: 0.59
> [28203] dbg: generic: sa-update version svn454083
> [28203] dbg: generic: using update directory: /var/lib/spamassassin/3.001007
> [28203] dbg: diag: perl platform: 5.008008 openbsd
> [28203] dbg: diag: module installed: Digest::SHA1, version 2.11
> [28203] dbg: diag: module installed: MIME::Base64, version 3.07
> [28203] dbg: diag: module installed: HTML::Parser, version 3.55
> [28203] dbg: diag: module installed: DB_File, version 1.814
> [28203] dbg: diag: module installed: Net::DNS, version 0.59
> [28203] dbg: diag: module installed: Net::SMTP, version 2.31
> [28203] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
> [28203] dbg: diag: module installed: IP::Country::Fast, version 604.001
> [28203] dbg: diag: module installed: Razor2::Client::Agent, version 2.67
> [28203] dbg: diag: module not installed: Net::Ident ('require' failed)
> [28203] dbg: diag: module installed: IO::Socket::INET6, version 2.51
> [28203] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
> [28203] dbg: diag: module installed: Time::HiRes, version 1.86
> [28203] dbg: diag: module not installed: DBI ('require' failed)
> [28203] dbg: diag: module installed: Getopt::Long, version 2.35
> [28203] dbg: diag: module installed: LWP::UserAgent, version 2.033
> [28203] dbg: diag: module installed: HTTP::Date, version 1.47
> [28203] dbg: diag: module installed: Archive::Tar, version 1.32
> [28203] dbg: diag: module installed: IO::Zlib, version 1.04
> [28203] dbg: channel: attempting channel updates.spamassassin.org
> [28203] dbg: channel: update directory
> /var/lib/spamassassin/3.001007/updates_spamassassin_org
> [28203] dbg: channel: channel cf file
> /var/lib/spamassassin/3.001007/updates_spamassassin_org.cf
> [28203] dbg: channel: channel pre file
> /var/lib/spamassassin/3.001007/updates_spamassassin_org.pre
> can't resolve "localhost" to address at
> /usr/local/libdata/perl5/site_perl/i386-openbsd/Net/DNS/Resolver/Base.pm
> line 751.
> [root@ns1 ~]#
> 
> Thanks, Helmut

Re: sa-update, can't resolve 'localhost' to address

Posted by Helmut Schneider <ju...@gmx.de>.
From: "Duncan Hill" <sp...@cricalix.net>

> On Fri, June 15, 2007 08:20, Helmut Schneider wrote:
>> From: "Justin Mason" <jm...@jmason.org>
>>>> [root@ns1 ~]# sa-update  --nogpg
>>>> can't resolve "localhost" to address at
>>>>
>>>> /usr
>>>> local/libdata/perl5/site_perl/i386-openbsd/Net/DNS/Resolver/Base.pm
>>>> line 751. [root@ns1 ~]#
>>> A guess-- you have
>>> server localhost in /etc/resolv.conf.
>> In deed, localhost (which is a public nameserver itself) is the last of 5
>> nameservers in the list. Do I have to understand that? :)
> You can't use a name for a nameserver.  Put 127.0.0.1.

Although it is listed in /etc/hosts?! Well, OK, good to know.

Thanks, Helmut 


Re: sa-update, can't resolve 'localhost' to address

Posted by Duncan Hill <sp...@cricalix.net>.
On Fri, June 15, 2007 08:20, Helmut Schneider wrote:
> Hi,
>
>
> From: "Justin Mason" <jm...@jmason.org>
>
>
>>> [root@ns1 ~]# sa-update  --nogpg
>>> can't resolve "localhost" to address at
>>> /usr/local/libdata/perl5/site_perl/i386-openbsd/Net/DNS/Resolver/Base.pm
>>> line 751. [root@ns1 ~]#
>>>
>> A guess-- you have
>> server localhost in /etc/resolv.conf.
>
> In deed, localhost (which is a public nameserver itself) is the last of 5
> nameservers in the list. Do I have to understand that? :)

You can't use a name for a nameserver.  Put 127.0.0.1.


Re: sa-update, can't resolve "localhost" to address

Posted by Helmut Schneider <ju...@gmx.de>.
Hi,

From: "Justin Mason" <jm...@jmason.org>

>> [root@ns1 ~]# sa-update  --nogpg
>> can't resolve "localhost" to address at
>> /usr/local/libdata/perl5/site_perl/i386-openbsd/Net/DNS/Resolver/Base.pm
>> line 751.
>> [root@ns1 ~]#
> A guess-- you have
> server localhost
> in /etc/resolv.conf.

In deed, localhost (which is a public nameserver itself) is the last of 5 
nameservers in the list. Do I have to understand that? :)

Thanks, Helmut