Whois, DNS, CName, MX record lookup in C#
This is the source code from the network tools page that use to exist on the previous domain (when the site was hosted on a dedicated server). A good replacement site is who.is, however the source for the tools is below.
The download contains the class library used for the Network Tools and a sample console application. The Whois lookup isn’t included, you can grab that from the Whois post. Most of the credit for tools goes to the NMail server project. The DNS lookup functions were all adapted from that project, such as CNAME, Nameservers and MX records.
The code below shows the simple Hostname to IP and visa versa methods.