Prd 1334 instance connectivity

This request contains:
1. fixes for instance connectivity
2. fix for BaseException.message is uncompatible with Python 2.6.
3. Splitting the DNS test (PRD-1247)