Re: [Exim] Need Exim to ask hosts file before asking my DNS

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Sherif Mohamed
Data:  
Para: Suresh Ramasubramanian
CC: exim-users
Assunto: Re: [Exim] Need Exim to ask hosts file before asking my DNS
I think /etc/nsswitch is correct, as I ping can resolve correctly, also
telnet.
They lookup in the hosts file first.
But Exim don't, I see it trying to connect to the correct hostname but with
the real IP in the logs.
I am using Solaris 9.

> > How can I make Exim get the IP of a host from the /etc/hosts before

asking
> > the DNS?
> >
> > I need this because I have 2 email servers behind a firewall, internally
> > they use virtual IPs.
>
> /etc/nsswitch.conf or whatever is the equivalent on your OS


/etc/nsswitch.conf  is set to:
hosts:      files dns


>
> The usual order is "hosts, bind" - which means your /etc/hosts should be
> queried before querying dns.
>
> > I also tried to set my MX as a CNAME so the IP does not appear when

asking
>
> Don't do that
>
> srs