add dns only if there is dns support