add parsing public dns name (#534)