fix reading hostname from PTR record