[Dnsmasq-discuss] Localhost reverse lookups
Fri, 06 May 2005 21:12:07 -0700
Simon Kelley wrote:
> 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: query[A] 22.214.171.124.dnsbl.ahbl.org from 127.0.0.1
> >>May 5 04:50:34 dnsmasq: cached 126.96.36.199.dnsbl.ahbl.org is <NXDOMAIN>-IPv4
> >>May 5 04:50:34 dnsmasq: query[A] 188.8.131.52.combined.njabl.org from 127.0.0.1
> >>May 5 04:50:34 dnsmasq: forwarded 184.108.40.206.combined.njabl.org to 220.127.116.11
> >>May 5 04:50:36 dnsmasq: reply 18.104.22.168.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.
Let me begin by saying that I'm not trying to be argumentative or
beligerent even though when I read what I have written I think that is
the way I "sound". If an apology is necessary, this is it!
The SMTP server does this. I know what it is doing and why. But I
don't know why dnsmasq thinks it needs to ask some outside source that
has no clue about localhost to resolve localhost.
> > 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: 702A76D002C: to=<firstname.lastname@example.org>, 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)
No. From the top of /etc/hosts (the " quotes are added by me):
# By the way, Arnt Gulbrandsen <agulbra MUNGE nvg MUNGE unit MUNGE no>
says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes
# for some (stupid) programs, irc and reputedly talk. :^)
localhost resolves. me.tld resolves. Unless you can explain why
localhost.me.tld SHOULD resolve, I stand by "forwarding is not correct
behavior" and I believe my configuration to be correct.
> > If this can be fixed, please do.
> I think this is probably your configuration............
I'm all ears.