there was an error connecting to the apple id server
I have upgraded to el capitan, however when try logging in to iCloud or App store get the error There was an error connecting to the apple id server. tried changing password and creating a new account, however still get this issue.
iMac, OS X El Capitan (10.11)