[Postfixbuch-users] /etc/hosts

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Fr Dez 13 14:11:31 CET 2002


* HENNING.MATTHES at LHSYSTEMS.COM <HENNING.MATTHES at LHSYSTEMS.COM>:

> Ja, resolv.conf ist auch da.
Der Thread:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=aircp0%241itt%241%40FreeBSD.csie.NCTU.edu.tw&rnum=1&prev=/groups%3Fq%3Dsystem%2Bresolver%2B/etc/hosts%2Bgroup:mailing.postfix.users%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3Daircp0%25241itt%25241%2540FreeBSD.csie.NCTU.edu.tw%26rnum%3D1
bespricht das Problem. Juri spricht Deutsch, allerdings hat er bei
altus.de aufgehoert.

Insbesondere:
/etc/nsswitch.conf
und
/etc/host.conf 

$ cat /etc/host.conf 
order hosts,bind
multi on

Und, sehr wichtig (aus den sourcen!)

/*      [...] When
/*      DNS lookups are disabled, host address lookup is done with
/*      gethostbyname().

If I understand this correct Postfix only uses the OS' gethostbyname()
function, if "disable_dns_lookups" is set to "yes" in main.cf. So on an
ordinary mail host the OS' resolver routines are never called for smtp
and lmtp, though they seem to be used for smtpd!

-- 
Ralf Hildebrandt (Im Auftrag des Referat V a)   Ralf.Hildebrandt at charite.de
Charite Campus Mitte                            Tel.  +49 (0)30-450 570-155
Referat V a - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
"Hardware: the parts of a computer that can be kicked."       -- Jeff Pesis  



Mehr Informationen über die Mailingliste Postfixbuch-users