DNS code compression

reducing dns_manager code