Re: Resolving localdomain



"Morten" <usenet@xxxxxxxxxx> wrote:
Hi,

I have an Exim setup where I wish to forward all mail to
myuser@localdomain, this is done by adding a route and mapping all
users to myuser@localdomain

Exim tries to resolve the domain using DNS, but fails:

calling dnslookup router
dnslookup router called for myuser@localdomain
domain = localdomain
DNS lookup of localdomain (MX) gave HOST_NOT_FOUND
returning DNS_NOMATCH
dnslookup router declined for tagticks@localdomain
"more" is false: skipping remaining routers
no more routers

Any way I can trick my machine into resolving localdomain to 127.0.0.1?

You *do* *not* want it to resolve to 127.0.0.1, which should resolve
only to "localhost".

The right way to get a local loopback is to use another IP address. If
you take a look, you'll find that *any* 127.x.x.x address is going to
be a local loopback, hence any IP address in that range will do what
you need.

Put something like this in /etc/hosts,

127.0.0.2 localdomain

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@xxxxxxxxxx
.



Relevant Pages

  • Re: Resolving localdomain
    ... I have an Exim setup where I wish to forward all mail to ... dnslookup router called for myuser@localdomain ... DNS lookup of localdomain gave HOST_NOT_FOUND ...
    (comp.os.linux.networking)
  • Resolving localdomain
    ... I have an Exim setup where I wish to forward all mail to ... dnslookup router called for myuser@localdomain ... DNS lookup of localdomain gave HOST_NOT_FOUND ...
    (comp.os.linux.networking)