I solved the problem on my mac mini.
First, according to
this post I opened terminal and typed :
Code:
sudo launchctl unload -w /System/Library/LaunchDaemons/org.isc.named.plist
the the Mac Mini goes to sleep but then after awake the Internet Connection gets lost. I have solved this by running
Code:
sudo launchctl load -w /System/Library/LaunchDaemons/org.isc.named.plist
after the Mac Mini awakes. But this can only be a workaround.
So I wanted to make a script before and after sleeping to automate this.
So I installed sleepwatcher following
this tutorial.
Strangely, sleepwatcher doesn't put a sleep the mac, but sleep work normally now !