Class for resolving domain names