I suggest starting a new post with the specifics of your issue. Not to be snarky, but I'd be willing to bet your problem is different and will need a different solution. We're here to help.
My problem was with DNS, it couldn't resolve domain name.
So we just put two commands
ip domain retry 0
ip domain timeout 1
That was our solution...