I have had exactly the same problem on one of my computers. I can ping the localhost but cvsnt can not resolve localhost for some reason... Changing to 127.0.0.1 solved the issue.