now uses dns instead of IP