Last modifications to work on OpenStack

As been tested with this : http://code.launchpad.net/~thomnico/charms/precise/dns/openstack-support

Worked on both EC2 and private openstack. Tested with sipml5 charm in the charmstore.

Please comment
no issue replacing by hostname --all-ip-addresses