At 10:58 AM 3/2/99 -0500, Timothy L. Mayo wrote:
>On Tue, 2 Mar 1999, Florent Guillaume wrote:
>
>> Jacek Czerwinski wrote:
>> > 
>> > qmail MUST have DNS (caching named plus LAN adresses ?), q. don't use
>> > /etc/hosts.
>> 
>> Surely you mean that qmail uses the resolver, who in turn may use the
>> DNS ?  Or does qmail make direct DNS requests ?
>> 
>
>No, qmail does NOT use the resolver.  Yes it makes direct DNS requests.

I don't think that's right. After all, if qmail were to contact a name 
server directly, how are we telling it which ones? I see nothing in 
/var/qmail/control that talks about addresses for name servers.

The correct answer is that qmail *does* use the resolver libraries for at 
least two reasons:

1. The code

$ grep res_ *.c
dns.c:extern int res_query();
dns.c:extern int res_search();
dns.c:static int (*lookup)() = res_query;
dns.c: res_init();
dns.c: if (flagsearch) lookup = res_search;

2. Comments in THOUGHTS suggesting that Dan may one day write his own 
resolver library to avoid using the system-supplied one.


Regards.

Reply via email to