split dnmgr into cli utility and profile management library