optimize dns stages