extract the dns lookup out of the controller