Ah, the reason is because when you ping or telnet or use a webbrowser, 
you are using A and CNAME records stored in your DNS server.  When a 
mail server sends email, it uses MX records.  (A records map a name to 
an IP address.  CNAME map a name to another name.)

The notable difference is that an MX record can have multiple entries 
for a hostname (rather than a single mapping) and include a priority. 
For example, the MX records for yahoo.com are mx2.mail.yahoo.com (1), 
mx1.mail.yahoo.com (1), and mx4.mail.yahoo.com (4).  This means mail 
servers can deliver to any of these addresses, and should generally try 
to deliver to mx1 or mx2 before mx4 (as indicated by the priority).

So, James needs direct access to the DNS server to query MX records so 
it can deliver mail correctly.
-- 
Serge Knystautas
Loki Technologies - Unstoppable Websites
http://www.lokitech.com/

Thomas Singer wrote:
> Ok, Serge, I ask my question in other words: Why needs James the DNS 
> server setting, if Java can resolve the names automatically (with the 
> help of the underlying OS)?
> 
> Tom
> 
> 
> At 18:43 05.04.2002 -0500, you wrote:
> 
>> Java is not using one [DNS server] itself... it is opening network 
>> connections through your operating system's network stack, which takes 
>> care of converting hostnames to IP addresses, establishing the 
>> connection, etc...  Java has no way of interrogating your network 
>> settings to determine what DNS server you have configured. 
>> Unfortunately you have to set this manually.  Well, I guess in theory 
>> we could make a DHCP request or scan the local network for a DNS 
>> server, but these both seem a bit intrusive yet convenient (truly a 
>> Microsoft approach).
>> -- 
>> Serge Knystautas
>> Loki Technologies - Unstoppable Websites
>> http://www.lokitech.com/
>>
>> Thomas Singer wrote:
>>
>>> James requires to setup the DNS server correctly.
>>> How to tell James to use the system's DNS server (that one, that Java 
>>> uses itself)?
>>> Tom


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to