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

Top Page
Delete this message
Reply to this message
Author: Suresh Ramasubramanian
Date:  
To: Sherif Mohamed
CC: exim-users
Subject: Re: [Exim] Need Exim to ask hosts file before asking my DNS
Sherif Mohamed writes on 4/27/2004 10:14 PM:

> 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

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