move logging for DNS resolve