optimization in dns resolving