wire: refactor dname pointer operations

Change-Id: I6d71395b77fa40715b41ac2eda380fa5030e8baa