Moved dns/ip lookup into its own file.