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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Suresh Ramasubramanian
Dátum:  
Címzett: Sherif Mohamed
CC: exim-users
Tárgy: 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