Implemented the DNS client program.