Support cron task for dns switch