Create dns_map and add to thread arguments

A dns_map and the corresponding files are created when the server
starts. Also the dns_map is added to thread arguments, so that all
threads who need access to the map have access to it.