> I am running SpamAssassin 3.1.7 on Windows 2003 Server. > > My SpamAssassin installation works fine, with DNSBL and URIBL tests > along with other DNS tests working fine. However I have > attempted to use > sa-update which I gather should function fine on Windows now. > Unfortunately I couldn't get a positive result, with it giving me an > error message of "no nameservers". > > My command was "sa-update -D" > and I got the following output: > [2840] dbg: logger: adding facilities: all > [2840] dbg: logger: logging level is DBG > [2840] dbg: generic: SpamAssassin version 3.1.7 > [2840] dbg: config: score set 0 chosen. > [2840] dbg: util: defining getpwuid() wrapper using 'unknown' > as username > [2840] dbg: message: ---- MIME PARSER START ---- > [2840] dbg: message: main message type: text/plain > [2840] dbg: message: parsing normal part > [2840] dbg: message: added part, type: text/plain > [2840] dbg: message: ---- MIME PARSER END ---- > [2840] dbg: dns: is Net::DNS::Resolver available? yes > [2840] dbg: dns: Net::DNS version: 0.59 > [2840] dbg: generic: sa-update version svn454083 > [2840] dbg: generic: using update directory: > F:\Perl\site/var/spamassassin/3.001007 > [2840] dbg: diag: perl platform: 5.008008 MSWin32 > [2840] dbg: diag: module installed: Digest::SHA1, version 2.11 > [2840] dbg: diag: module installed: HTML::Parser, version 3.55 > [2840] dbg: diag: module installed: MIME::Base64, version 3.07 > [2840] dbg: diag: module installed: DB_File, version 1.814 > [2840] dbg: diag: module installed: Net::DNS, version 0.59 > [2840] dbg: diag: module installed: Net::SMTP, version 2.29 > [2840] dbg: diag: module installed: Mail::SPF::Query, version 1.999001 > [2840] dbg: diag: module installed: IP::Country::Fast, version 604.001 > [2840] dbg: diag: module not installed: Razor2::Client::Agent > ('require' > failed) > [2840] dbg: diag: module installed: Net::Ident, version 1.20 > [2840] dbg: diag: module not installed: IO::Socket::INET6 > ('require' failed) > [2840] dbg: diag: module not installed: IO::Socket::SSL > ('require' failed) > [2840] dbg: diag: module installed: Time::HiRes, version 1.86 > [2840] dbg: diag: module installed: DBI, version 1.52 > [2840] dbg: diag: module installed: Getopt::Long, version 2.35 > [2840] dbg: diag: module installed: LWP::UserAgent, version 2.033 > [2840] dbg: diag: module installed: HTTP::Date, version 1.47 > [2840] dbg: diag: module installed: Archive::Tar, version 1.30 > [2840] dbg: diag: module installed: IO::Zlib, version 1.04 > [2840] dbg: gpg: Searching for 'gpg.exe' > [2840] dbg: util: current PATH is: .;F:\Perl\bin\;F:\Program > Files\Windows Resource > Kits\Tools\;F:\perl\bin;f:\php\imagem;F:\WINDOWS\system32;F:\W > INDOWS;F:\WINDOWS\System32\Wbem;F:\php\extensions;F:\php\dlls; > F:\Program Files\Bitsum Technologies\MakeService;f:\Program > Files\OpenSSL\bin;F:\Program Files\GNU\GnuPG > [2840] dbg: util: executable for gpg.exe was found at F:\Program > Files\GNU\GnuPG\gpg.exe > [2840] dbg: gpg: found F:\Program Files\GNU\GnuPG\gpg.exe > [2840] dbg: gpg: path changed to "F:\Program Files\GNU\GnuPG\gpg.exe" > [2840] dbg: gpg: release trusted key id list: > 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 > 26C900A46DD40CD5AD24F6D7DEE01987265FA05B > 0C2B1D7175B852C64B3CDC716C55397824F434CE > [2840] dbg: channel: attempting channel updates.spamassassin.org > [2840] dbg: channel: update directory > F:\Perl\site\var\spamassassin\3.001007\updates_spamassassin_org > [2840] dbg: channel: channel cf file > F:\Perl\site\var\spamassassin\3.001007\updates_spamassassin_org.cf > [2840] dbg: channel: channel pre file > F:\Perl\site\var\spamassassin\3.001007\updates_spamassassin_org.pre > [2840] dbg: dns: query failed: 7.1.3.updates.spamassassin.org => no > nameservers > [2840] dbg: channel: no updates available, skipping channel > [2840] dbg: diag: updates complete, exiting with code 1 > > > It does seem to say that some modules aren't installed, but I didn't > think these were actually necesary for sa-update, and can't seem to > install them using ppm on my Windows box. > > As I said the other DNS tests seem to work. Is there any way > I can debug why it is failing with this no nameservers error?
Net::DNS doesn't reliably find the default name servers on Windows. To get around this, you need a global environment variable to tell it what to query. Right click on My Computer Properties Advanced Tab Click the Environment variables button Under System Variables, click New For name, use RES_NAMESERVERS For value, use the IP address of your name server. If you use more than one, separate the list with spaces. Click OK, OK, OK. In theory, you should be able to start a new command prompt and run sa-update. Bret