OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: partially disable DNS?
From: Xavier Fabre (xfabreoef.lucent.com)
Date: Thu Sep 28 2000 - 10:33:27 CDT


I have a machine running Postfix between internet and my intranet.

I have noticed the following in the faq :
if your intranet does not use DNS internally, you have to disable DNS
lookups as well:

         /etc/postfix/main.cf:
             disable_dns_lookups = yes

Indeed I do not want to use DNS inside my intranet (host addresses are
specified in etc/hosts of my machine running Postfix).
For mail going to internet, some requirements implies that I can't
specify a relay host.
So I have to do DNS queries in this case.

How can I achieve that?

PS: I have tried to change /etc/nsswitch.conf (with disable_dns_lookups
= no) to search in files before but the DNS request is nevertheless
done.