Apply DNS configuration method