VMware Cloud Community
rs73803
Contributor
Contributor

Using MX record to determine valid IP from DNS name?

Is there a way to configure Hyperic to use the MX records of a hostname to get the IP address of an SMTP server instead of the default of using the standard name resolution?

I have a situation where we RR between half a dozen SMTP servers ( which may change over time), and we query the MX record of of some ficticous hostname to retreive the addresses.

Any help would be appreciated.

Thanks!

Randall
0 Kudos
3 Replies
dougm_hyperic
VMware Employee
VMware Employee

Hi Randall,

Are you refering to the mail.smtp.host property used for sending
alerts via email or using the HQ DNS service to validate MX records?

On Jan 25, 2007, at 6:14 AM, rs73803 wrote:

> Is there a way to configure Hyperic to use the MX records of a
> hostname to get the IP address of an SMTP server instead of the
> default of using the standard name resolution?
>
> I have a situation where we RR between half a dozen SMTP servers
> ( which may change over time), and we query the MX record of of
> some ficticous hostname to retreive the addresses.
>
> Any help would be appreciated.
>
> Thanks!
>
> Randall
>



0 Kudos
rs73803
Contributor
Contributor

I'm refering to the server.mail.host property. It looks like Hyperic is using this value to directly send SMTP messages. I was hoping it could be configured to take this value, and instead of resolving to the C, use the MX records?

Also I wondered how Hyperic handled multiple IP addresses being returned from a DNS query for the server.mail.host property? Does it use only the first entry? Or cycle through them? If it receives more than one, and the first it tries fails is it smart enough to move to the next one?

Thanks!
0 Kudos
dougm_hyperic
VMware Employee
VMware Employee

We are currently using the standard javax.mail.Transport which
doesn't support MX record lookup as far as I know. It should be
straight forward to implement this, I've opened an enhancement ticket
for now:

http://jira.hyperic.com/browse/HHQ-554

On Jan 26, 2007, at 6:40 AM, rs73803 wrote:

> I'm refering to the server.mail.host property. It looks like
> Hyperic is using this value to directly send SMTP messages. I was
> hoping it could be configured to take this value, and instead of
> resolving to the C, use the MX records?
>
> Also I wondered how Hyperic handled multiple IP addresses being
> returned from a DNS query for the server.mail.host property? Does
> it use only the first entry? Or cycle through them? If it receives
> more than one, and the first it tries fails is it smart enough to
> move to the next one?
>
> Thanks!
>



0 Kudos