I would first upgrade to Jessie as Wheezy isn't fully supported anymore.
In addition, both of your debug tokens show that name resolution is not working.
So for now, I'd first suggesting making the upgrade and installing any package updates... You can also post the output of lsof -i -P -n
, which would be helpful.