|
From: Brian W. <bwe...@xb...> - 2003-02-27 23:17:11
|
On Fri, 16 Aug 2002, Revathi Velu wrote:
> Hi,
> I browsed in one of the sites that hotmail has upto 14 smtp servers.
> (As an example) While using dnsjava,
>
> Record result[] =
> org.xbill.DNS.dns.getAnyRecords("hotmail.com", Type.MX);
> for (int i = 0 ; i<result.length ; i++ )
> {
>
> System.out.println(result[i].rdataToString());
> }
>
> gives me only 4 addresses. Am I doing the right thing. Pls correct me if I
> am wrong. I would appreciate some code samples.
It gives you 4 MX records. Each MX record contains a name, not an
address. For example, one of them contains mx1.hotmail.com. If you look
up the addresses for mx1.hotmail.com, you'll find that there are 3 of
them.
Brian
|