Today my machine stopped being able to access the internet. I can still access some local network resources. When I looked in the error log I saw following tcpip warning:
A request to allocate an ephemeral port number from the global UDP port space has failed due to all such ports being in use.
netstat -anob and in the output DNScache is listed thousands of times (starting from port 50000 up to 65536).
This is the second time that this has happened to me. Killing the DNSClient process based on the instructions found here did work, but I would like to figure out what is causing this problem.
Update: When this problem happens I am still able to get online with programs that used DNS to resolve a hostname before the problem started. For example, I am able to continue chatting with friends with Pidgin. I am also able to connect to websites directly using the IP address.