remove unused dns code