skadns
Software
www.skarnet.org
The skadnsmx program
skadnsmx reads a domain name on its command line
and performs an MX request on it.
Its interface and behaviour are exactly the same as
dnsmx's.
Actually, this command was written to test
skadnsd.
What is interesting in skadnsmx is its source code: it shows a simple
example of using the skadns library.