Added 3600dns.c

This is the bulk of the code for the DNS implementation