OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: /etc/hosts confusion......

From: Nick Fisher (postfixnickdafish.com)
Date: Thu May 01 2003 - 19:01:21 CDT


> Wietse Venema:
>> Steve Crawford:
>> > > In DNS:
>> > > fudge.domain.tld = 10.0.0.2
>> > > MX 10 = fudge.domain.tld
>> > > MX 20 = jam.domain.tld
>> > >
>> > > In hosts:
>> > > fudge.domain.tld = 10.0.0.3
>>
>> Postfix 20030424 has a solution for this.
Err... is there a workaround for the earlyer versions? What's the problem
anyhow? I suspect that the problem is that there is no facility for MX
records in the hosts file and DNS when queryed returns the MX records
already complete with IP addresses....?

>> /etc/postfix/main.cf:
>> smtp_host_lookup = native
Sorry... I'm asking alot of questions here but what does that really do? I
can't find any reference to it.... if that option were used would there be
a prefomance hit?

>> This causes lookups from /etc/hosts in order to resolve the MX record.
> Provided that your nsswitch.conf specifies files before dns.
As far as I can tell my system is setup to check hosts first. If it wasn't
I'm sure that the lookup wouldn't return the hosts result when I did the
ping.

Many Thanks....

  Nick