MX DNS
DNS utilities for mail servers. Currently this crate supports reverse DNS lookups and lookups against dns based blocklists.
Example
use ;
let blocklists = vec!;
let mxdns = new.unwrap;
// Check if an IP Address is present on blocklists
let is_blocked = mxdns.is_blocked.unwrap;
assert!;
// Reverse lookup a DNS address
let rdns = mxdns.reverse_dns.unwrap.unwrap;
assert_eq!;
// Check that the ip resolved from the name obtained by the reverse dns matches the ip
if let Ok = mxdns.fcrdns