Initial commit of much of the DNS client.