Disable internet for the session

Hi,

I have a problem with the engine thinks it has internet (may be lost, or poor) and it tries and tries to resolve names, do stuff on the internet…
The problem is that the system lags when it happens, my program built on Unity is very sensitive to this, small lags is not good at all.

If the user has no internet when starting it’s Ok, slow internet is the worst, system hangs now and then all the time.

Is there some way I can disable the use of internet manually from within the system?
My own code I have built this for, but for other stuff, in the engine I mean.

My system runs solely on Linux environment

Curl error 6: Could not resolve host: cdp.cloud.unity3d.com

is in the log among other things.