Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Connectivity > age_net
get_mx_record/1
Description
get_mx_record/1 is an Erlang function exported by "age_net" module.
Resolves the DNS mail exchange record (MX record). Maps a domain name to a list of message transfer agents for that domain.
References
•validate_fqdn/1
Parameters
Name
Type
Host
string()
FQDN
Result
Value or Type
list()
Returns list of all MX-records associated to the Host.
Code Sample
> age_net:get_mx_record("binetix.net").
[{20,"mx2.bgdns.net"}]