get ip by dn