Use dns_view_weakattach and dns_view_weakdetach to maintain a reference to the view referenced through catzs->view.