OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Error: Name service error for localhost: Host found but no data record of requested type

From: kk ii (kkiikkii9988yahoo.com)
Date: Mon Nov 03 2003 - 08:43:03 CST


My postfix is working fine, and the problem happens
when I tried to set up to set up clamav, spamassassin
and amavisd-new with postfix to scan virus and spam.

Spamassassin, clamav and amavisd-new seems to be
installed and started fine, but postfix is complaining
with the error

Name service error for localhost: Host found but no
data
record of requested type

and all mails are bounced. I tried setting
disable_dns_lookups to yes, but that didn't change
anything.

Here is the extra line I put in main.cf:
content_filter = smtp:localhost:10024

And for master.cf:
smtp-amavis unix - - - - 2 smtp -o \
smtp_data_done_timeout=1200 -o disable_dns_lookups=yes
localhost:10025 inet n - - - - smtpd -o
content_filter=

A netstat -na shows shows:
tcp 0 0 127.0.0.1:10024 0.0.0.0:*
             LISTEN
tcp 0 0 127.0.0.1:10025 0.0.0.0:*
             LISTEN

ping localhost is doing fine, dig localhost give me
(192.168.10.1 is the DNS):
 
; <<>> DiG 9.2.1 <<>> localhost
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:
34921
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY:
1, ADDITIONAL: 0
 
;; QUESTION SECTION:
;localhost. IN A
 
;; ANSWER SECTION:
localhost. 600 IN A
127.0.0.1
 
;; AUTHORITY SECTION:
localhost. 600 IN NS
localhost.
 
;; Query time: 3 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Mon Nov 3 22:21:42 2003
;; MSG SIZE rcvd: 57
 

I don't understand why it can find localhost. Isn't
it obvious that even if the machine is not connected,
localhost is resolved to 127.0.0.1 anyways?

My environment:
postfix: 1.1.12-1
spamassassin: 2.44-11.8.x
clamav: 0.61-0.20030829
amavisd-new-20030616-2.dag.rh90
os: Linux RH9

thanks for any help.

kk

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/