Autor: Sherif Mohamad Data: Para: Peter Bowyer, exim-users Assunto: Re: [Exim] Need Exim to ask hosts file before asking my DNS
> Matthew Byng-Maddick <exim@???> wrote: > > On Thu, May 06, 2004 at 12:31:34PM +0200, Sherif Mohamad wrote:
> >> not the virtual one (behind the firewall), it used gethostbyname to
> >> get the MX of the domain, so it got the host name, but when trying
> >> to get the IP of
> >
> > NO!
> >
> > IT DIDN'T.
> >
> > You can't get MX records from gethostbyname(). It is a host lookup
> > function.
> >
> > If you're doing MX lookups, you won't be using the hosts file.
> >
> > I don't know how I can explain this more clearly a third time...
>
> I think what the OP is expecting is a DNS lookup for an MX record, returning > a hostname, and a host file lookup for the IP of that hostname.
>