Search

Freeware

CF Benchmark
CFX_ODSMXLookup
CFX_ODSWhoIs
HTTP Analyzer

CFX_ODSMXLookup

CFX_ODSMXLookup is an add-on DLL for ColdFusion that allows you to perform MX (Mail Exchange) lookups from ColdFusion pages. We use it on some of the form processing pages that require email addresses to be entered to verify the validity of the email address that was entered. You don't need to be concerned about passing the entire email address since this tag will parse out the domain name if the entered DOMAIN string contains a complete email address.

Download the latest version from 
ftp://ftp.hoot.com/pub/ods/cfx_odsmxlookup/cfx_odsmxlookup.zip

Try it here:

Enter a domain:

Installation

Copy the DLL onto your server and install according to the Macromedia documentation for CFX installations.

Usage

<cfx_odsmxlookup
DOMAIN="<domain to query>"
SERVER="<remote server>"
NAME="<name of returned query>"
TIMEOUT="<timeout seconds>"


DOMAIN this is the domain to query.  (Required)
If the entered string contains an "@" sign the query will be performed on the string after the "@" sign.
SERVERthe DNS server to query.  (Required)
This can be a server name (like DNS1.HOOT.COM) or an IP address.
NAME The name of the returned query is ODSMX_QUERY by default.  You can change the name with this parameter.
TIMEOUT TCP/IP timeout parameter.  Default is 5 seconds.

This tag returns two results as follows:

ODSMX_QUERYThis is a query result set of the MX lookup.  The two fields in the query are PREFERENCE (the lower preference numbers are the mail exchange servers that are used first for the domain) and EXCHANGE (the qualified name of the mail exchange).
ODSMX_RESULT Result of the query operation.  Note that this is set to "SUCCESS" if the MX query succeeded (i.e. if the DNS was contacted and sent back a response).  This value does not mean that the domain has a valid MX record.  You need to check the recordcount of the query to determine if the domain has MX records (check that recordcount is greater than zero).

Example:

<CFX_ODSMXLookup DOMAIN="coolfusion.com" SERVER="dns1.hoot.com">

NOTE: This software is provided as-is with no warranty whatsoever. 
Please send all bug reports or feature requests to
support@coolfusion.com

Copyright © 1998-2010 - CoolFusion.com. All rights reserved