On Fri, Apr 12, 2002 at 12:59:39PM -0600, Dan Wilson wrote: > > perl -e 'use Socket;' \ > > -e 'print scalar gethostbyaddr(inet_aton("127.0.0.1"),AF_INET),"\n";' > > I get "ryloth"... which is the name of the machine without the domain name. > I'm assuming that is what is supposed to happen.
> That looks like the problem: > > [root@ryloth Mail-SpamAssassin-2.20]# host localhost > Host localhost. not found: 3(NXDOMAIN) > [root@ryloth Mail-SpamAssassin-2.20]# > > How do I fix this... is it in /etc/resolv.conf? resolv.conf configures where your DNS servers are. To fix this problem, I would look in /etc/hosts. There'll be a line starting with "127.0.0.1". It should look like this at a minimum: 127.0.0.1 localhost There should be other lines included for your network interfaces and other hosts that you want to hardcode. I'd also check your nsswitch.conf hosts line: $ grep ^hosts: /etc/nsswitch.conf hosts: files dns Which says for host resolution, look at /etc/hosts, then DNS (via resolv.conf.) -- Randomly Generated Tagline: Almost nothing in Perl serves a single purpose. -- Larry Wall in <[EMAIL PROTECTED]> _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk