dns: fix DNS detection