Robert Penz writes:

I think you misunderstand me. dns using is ok, but it should use also hosts
entries for A and PTR records, specially for its own hostname. To be
specific I don't care about anything else accept its own hostname. Why does
every Linux system have a /etc/hosts? because of the entry for loopback and
its own hostname. If you use "ping" or any other program it checks the
hosts file before it does a dns query.

Others have answered this already, I'll just emphasize. Neither ping nor telnet needs to look up MX or TXT records. Courier does. Furthermore, the system resolver functions, gethostbyname and gethostbyaddr, which search /etc/hosts, do not support IPv6. The newer replacements for these functions do, however getaddrinfo and getnameinfo were not widely implemented back when Courier has been originally written.

So, there was no choice but to implement DNS lookups, RFC 1035, directly. And to use a completely different mechanism for this specific case would've resulted in two different implementions of DNS resolution, which has its own problems.

Working DNS is fundamental. There's no way around it. A hosts file is fine for a closed LAN; however on the Internet you'll have to use DNS.


Attachment: pgpkRh0ZKbmPJ.pgp
Description: PGP signature

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to