[Dnsmasq-discuss] Localhost reverse lookups
Simon Kelley
simon@thekelleys.org.uk
Fri, 06 May 2005 11:35:42 +0100
gypsy wrote:
> I don't know which to blame, my SMTP server or dnsmasq, but the
> following should NEVER happen:
>
>>May 5 04:50:34 dnsmasq[8766]: query[A] 1.0.0.127.dnsbl.ahbl.org from 127.0.0.1
>>May 5 04:50:34 dnsmasq[8766]: cached 1.0.0.127.dnsbl.ahbl.org is <NXDOMAIN>-IPv4
>>May 5 04:50:34 dnsmasq[8766]: query[A] 1.0.0.127.combined.njabl.org from 127.0.0.1
>>May 5 04:50:34 dnsmasq[8766]: forwarded 1.0.0.127.combined.njabl.org to 68.65.16.162
>>May 5 04:50:36 dnsmasq[8766]: reply 1.0.0.127.combined.njabl.org is <NXDOMAIN>-IPv4
>
>
> Can't dnsmasq know that a reverse dns lookup of 127.0.0.0/8 should never
> be forwarded?! Isn't localhost localhost, no matter how one asks about
> it?
Those are _not_ reverse lookups. They are forward lookups with an IP
address coded into the domain name. They are checking for known spam
domains and almost certainly come from spamassasin or similar spam blocker.
>
> I have no idea what the correct behavior should be, but I am dead
> certain that forwarding is not correct behavior.
>
> The Bad Thing That Happens is that the SMTP server says:
>
>>May 5 04:5 /smtp[20083]: 702A76D002C: to=<gypsy@localhost.me.tld>, relay=none, delay=29, status=deferred (Name service error for localhost: Host not found, try again)
>
That's something different (can your machine resolve localhost.me.tld,
either as an A record, or preferably and MX record)
>
> If this can be fixed, please do.
I think this is probably your configuration............
Cheers,
Simon.