socket class for dns requests