/** @author Jaimon Mathew csc.exe /t:exe /r:System.DLL /r:DnsLib.dll /D:DEBUG=1 /debug+ /out:"Test.exe" "Test.cs" */ using System; using System.Collections; using DnsLib; public class Test { //usage test //example : test hotmail.com public static void Main(string[] s) { try { ArrayList dnsServers = new ArrayList(); //name/ip of the dnsservers dnsServers.Add("158.152.1.58"); DnsLite dl = new DnsLite(); dl.setDnsServers(dnsServers); ArrayList results; results = dl.getMXRecords(s[0]); for(int i=0;i