#!/opt/python/bin/python import DNS DNS.ParseResolvConf() print DNS.mxlookup("connect.com.au")